add global scss by huangtao
Showing
4 changed files
with
2 additions
and
2 deletions
@@ -26,6 +26,7 @@ const webpackConfig = { | @@ -26,6 +26,7 @@ const webpackConfig = { | ||
26 | alias: { | 26 | alias: { |
27 | vue$: 'vue/dist/vue.runtime.esm.js', | 27 | vue$: 'vue/dist/vue.runtime.esm.js', |
28 | 'lottie-web': 'lottie-web/build/player/lottie_light.min.js', | 28 | 'lottie-web': 'lottie-web/build/player/lottie_light.min.js', |
29 | + '@': resolve('apps') | ||
29 | }, | 30 | }, |
30 | modules: [path.join(__dirname, '../apps'), 'node_modules'], | 31 | modules: [path.join(__dirname, '../apps'), 'node_modules'], |
31 | }, | 32 | }, |
@@ -76,7 +76,7 @@ const webpackConfig = merge(baseConfig, { | @@ -76,7 +76,7 @@ const webpackConfig = merge(baseConfig, { | ||
76 | loader: 'sass-loader', | 76 | loader: 'sass-loader', |
77 | options: { | 77 | options: { |
78 | sourceMap: isProd, | 78 | sourceMap: isProd, |
79 | - // data: '@import "variables";', | 79 | + data: '@import "@/statics/scss/variable.scss";', |
80 | }, | 80 | }, |
81 | }, | 81 | }, |
82 | ], | 82 | ], |
-
Please register or login to post a comment