升级至vue-cli5

master
toesbieya 6 years ago
parent 8d64118cb1
commit c35952434a
  1. 6416
      vue/full/package-lock.json
  2. 6
      vue/full/package.json
  3. 6
      vue/full/vue.config.js

File diff suppressed because it is too large Load Diff

@ -23,10 +23,10 @@
"vuex": "^3.6.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.9",
"@vue/cli-service": "^4.5.9",
"@vue/cli-plugin-babel": "~5.0.0-alpha.0",
"@vue/cli-service": "~5.0.0-alpha.0",
"body-parser": "^1.19.0",
"compression-webpack-plugin": "6.1.1",
"compression-webpack-plugin": "^7.1.1",
"core-js": "^3.8.1",
"sass": "^1.32.0",
"sass-loader": "^10.1.0",

@ -1,4 +1,3 @@
'use strict'
const path = require('path')
const settings = require('./src/config')
const CompressionWebpackPlugin = require('compression-webpack-plugin')
@ -7,7 +6,6 @@ function resolve(dir) {
return path.join(__dirname, dir)
}
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module.exports = {
publicPath: settings.contextPath,
outputDir: 'dist',
@ -82,12 +80,12 @@ module.exports = {
cacheGroups: {
style: {
name: 'style',
//type: 'css/mini-extract',
test: (m) => /css\/mini-extract/.test(m.type),
type: 'css/mini-extract',
chunks: 'all'
},
}
})
.end()
//生成gz
config

Loading…
Cancel
Save