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/.browserslistrc +2 -0
- package/.editorconfig +5 -0
- package/.prettierrc +17 -0
- package/README.md +52 -0
- package/babel.config.js +5 -0
- package/lib/hc-basic.css +1 -0
- package/lib/hc-basic.umd.min.js +33 -0
- package/package.json +83 -0
- package/scss/_basicConfig.scss +217 -0
- package/scss/_config.scss +39 -0
- package/scss/_element-variables.scss +1020 -0
- package/scss/common/_components.scss +149 -0
- package/scss/common/_flex.scss +94 -0
- package/scss/common/_reset.scss +141 -0
- package/scss/common/index.scss +394 -0
- package/scss/index.scss +5 -0
- package/scss/theme.css +13139 -0
- package/vue.config.js +42 -0
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
|
+
};
|