vue-cli
Pan 2018-09-19 20:00:50 +08:00
parent 809967cb90
commit 9105c44966
2 changed files with 8 additions and 1 deletions

View File

@ -27,7 +27,7 @@
"@vue/cli-plugin-babel": "3.0.3", "@vue/cli-plugin-babel": "3.0.3",
"@vue/cli-service": "3.0.3", "@vue/cli-service": "3.0.3",
"node-sass": "^4.9.3", "node-sass": "^4.9.3",
"sass-loader": "^7.1.0", "sass-loader": "7.1.0",
"script-ext-html-webpack-plugin": "2.0.1", "script-ext-html-webpack-plugin": "2.0.1",
"svg-sprite-loader": "3.8.0", "svg-sprite-loader": "3.8.0",
"svgo": "1.0.5", "svgo": "1.0.5",

View File

@ -1,4 +1,5 @@
var path = require('path') var path = require('path')
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, './', dir) return path.join(__dirname, './', dir)
} }
@ -35,5 +36,11 @@ module.exports = {
.options({ .options({
symbolId: 'icon-[name]' symbolId: 'icon-[name]'
}) })
.end()
config
.when(process.env.NODE_ENV === 'development',
config => config.devtool('cheap-source-map')
)
} }
} }