docs:配置修改
Showing
1 changed file
with
5 additions
and
1 deletions
... | @@ -45,7 +45,7 @@ module.exports = { | ... | @@ -45,7 +45,7 @@ module.exports = { |
45 | } | 45 | } |
46 | }, | 46 | }, |
47 | css: { | 47 | css: { |
48 | extract: false, // 是否使用css分离插件 ExtractTextPlugin | 48 | extract: true, // 是否使用css分离插件 ExtractTextPlugin |
49 | sourceMap: false, // 开启 CSS source maps? | 49 | sourceMap: false, // 开启 CSS source maps? |
50 | loaderOptions: { | 50 | loaderOptions: { |
51 | sass: { | 51 | sass: { |
... | @@ -57,6 +57,10 @@ module.exports = { | ... | @@ -57,6 +57,10 @@ module.exports = { |
57 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 | 57 | // configureWebpack通过操作对象的形式,来修改默认的webpack配置 |
58 | configureWebpack: { | 58 | configureWebpack: { |
59 | name: name, | 59 | name: name, |
60 | optimization: { | ||
61 | usedExports: true, | ||
62 | minimize: true | ||
63 | }, | ||
60 | externals: [{ | 64 | externals: [{ |
61 | './cptable': 'var cptable' | 65 | './cptable': 'var cptable' |
62 | }], | 66 | }], | ... | ... |
-
Please register or sign in to post a comment