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