|
@@ -5,21 +5,41 @@ const merge = require('webpack-merge')
|
|
|
const baseConfig = require('./webpack.config.base')
|
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
module.exports = merge(baseConfig, {
|
|
|
mode: 'production',
|
|
|
output: {
|
|
|
publicPath: '/'
|
|
|
},
|
|
|
optimization: {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
splitChunks: {
|
|
|
cacheGroups: {
|
|
|
commons: {
|
|
|
test: /[\\/]node_modules[\\/]/,
|
|
|
name: "vendor",
|
|
|
chunks: "all",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
module: {
|
|
|
rules: [
|