Merge branch 'master' into deploy

This commit is contained in:
Pan
2019-04-10 10:38:06 +08:00
10 changed files with 74 additions and 60 deletions

View File

@@ -21,7 +21,7 @@ module.exports = {
publicPath: '/vue-element-admin/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development' ? 'error' : false,
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false,
devServer: {
port: port,
@@ -114,7 +114,7 @@ module.exports = {
elementUI: {
name: 'chunk-elementUI', // split elementUI into a single package
priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
test: /[\\/]node_modules[\\/]element-ui[\\/]/
test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
},
commons: {
name: 'chunk-commons',