We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ff81c commit 84be076Copy full SHA for 84be076
web/package.json
@@ -74,6 +74,7 @@
74
"svg-sprite-loader": "5.0.0",
75
"vue-cli-plugin-mockjs": "0.1.3",
76
"vue-template-compiler": "2.6.12",
77
+ "webpack": "4.46.0",
78
"webpack-virtual-modules": "0.3.2"
79
}
80
web/vue.config.js
@@ -107,6 +107,8 @@ function resolve(dir) {
107
module.exports = {
108
publicPath: './',
109
outputDir: 'dist/dist',
110
+ lintOnSave: process.env.NODE_ENV !== "production", // build无需eslint
111
+ productionSourceMap: process.env.NODE_ENV === "dev", // 生产环境无需source map加速构建
112
chainWebpack: (config) => {
113
// set svg-sprite-loader
114
config.module
@@ -168,4 +170,4 @@ module.exports = {
168
170
169
171
172
-}
173
+}
0 commit comments