hc-basic 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vue.config.js ADDED
@@ -0,0 +1,42 @@
1
+ module.exports = {
2
+ // 修改 src 目录 为 examples 目录
3
+ pages: {
4
+ index: {
5
+ entry: 'examples/main.js',
6
+ template: 'public/index.html',
7
+ filename: 'index.html'
8
+ }
9
+ },
10
+ lintOnSave: true,
11
+ productionSourceMap: false,
12
+ // 扩展 webpack 配置,使 packages 加入编译
13
+ chainWebpack: config => {
14
+ const jsRule = config.module.rule('js');
15
+ jsRule.include
16
+ .add('/packages')
17
+ .end()
18
+ .use('babel')
19
+ .loader('babel-loader')
20
+ .tap(options => {
21
+ // 修改它的选项...
22
+ return options;
23
+ });
24
+ },
25
+ devServer: {
26
+ host: '0.0.0.0',
27
+ port: '8081',
28
+ disableHostCheck: true,
29
+ https: false,
30
+ hotOnly: false,
31
+ //代理
32
+ proxy: {
33
+ '/admin/*': {
34
+ target: 'http://192.168.0.109:8082/', // 华明远程地址
35
+ // target: 'http://121.36.53.143:3100/mock/27/', // YAPI
36
+ // target: 'http://wuhm.free.svipss.top/',
37
+ changeOrigin: true, //是否允许跨域
38
+ secure: false,
39
+ },
40
+ }
41
+ },
42
+ };