Commit 5a7223aa authored by XieZhiXiong's avatar XieZhiXiong

回复代码

parent 39caf487
...@@ -49,29 +49,29 @@ const config: any = { ...@@ -49,29 +49,29 @@ const config: any = {
defaultSizes: 'parsed', // stat // gzip defaultSizes: 'parsed', // stat // gzip
}, },
inlineLimit: 10000, inlineLimit: 10000,
// chunks: ['vendors', 'umi'], chunks: ['vendors', 'umi'],
// chainWebpack: function (config, { webpack }) { chainWebpack: function (config, { webpack }) {
// config.merge({ config.merge({
// optimization: { optimization: {
// minimize: true, minimize: true,
// splitChunks: { splitChunks: {
// chunks: 'all', chunks: 'all',
// minSize: 30000, minSize: 30000,
// minChunks: 3, minChunks: 3,
// automaticNameDelimiter: '.', automaticNameDelimiter: '.',
// cacheGroups: { cacheGroups: {
// vendor: { vendor: {
// name: 'vendors', name: 'vendors',
// test({ resource }) { test({ resource }) {
// return /[\\/]node_modules[\\/]/.test(resource); return /[\\/]node_modules[\\/]/.test(resource);
// }, },
// priority: 10, priority: 10,
// }, },
// }, },
// }, },
// } }
// }); });
// }, },
cssLoader: { cssLoader: {
localsConvention: 'camelCase', // 将style中的class由 .foo-body 转化为fooBody调用 localsConvention: 'camelCase', // 将style中的class由 .foo-body 转化为fooBody调用
}, },
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
"react-reconciler": "^0.25.1", "react-reconciler": "^0.25.1",
"rgbaster": "^2.1.1", "rgbaster": "^2.1.1",
"typescript": "^3.9.7", "typescript": "^3.9.7",
"umi": "3.2.28", "umi": "^3.2.16",
"video-react": "^0.14.1", "video-react": "^0.14.1",
"yorkie": "^2.0.0" "yorkie": "^2.0.0"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment