set preserveWhitespace
This commit is contained in:
parent
8e0b5624a9
commit
3560fcacf9
|
@ -45,7 +45,9 @@ module.exports = {
|
||||||
// parse app.body
|
// parse app.body
|
||||||
// http://expressjs.com/en/4x/api.html#req.body
|
// http://expressjs.com/en/4x/api.html#req.body
|
||||||
app.use(bodyParser.json())
|
app.use(bodyParser.json())
|
||||||
app.use(bodyParser.urlencoded({ extended: true }))
|
app.use(bodyParser.urlencoded({
|
||||||
|
extended: true
|
||||||
|
}))
|
||||||
|
|
||||||
// import ES2015 module from common.js module
|
// import ES2015 module from common.js module
|
||||||
const { default: mocks } = require('./mock')
|
const { default: mocks } = require('./mock')
|
||||||
|
@ -82,7 +84,15 @@ module.exports = {
|
||||||
symbolId: 'icon-[name]'
|
symbolId: 'icon-[name]'
|
||||||
})
|
})
|
||||||
.end()
|
.end()
|
||||||
|
config.module
|
||||||
|
.rule('vue')
|
||||||
|
.use('vue-loader')
|
||||||
|
.loader('vue-loader')
|
||||||
|
.tap(options => {
|
||||||
|
options.compilerOptions.preserveWhitespace = true
|
||||||
|
return options
|
||||||
|
})
|
||||||
|
.end()
|
||||||
config
|
config
|
||||||
.when(process.env.NODE_ENV === 'development',
|
.when(process.env.NODE_ENV === 'development',
|
||||||
config => config.devtool('cheap-source-map')
|
config => config.devtool('cheap-source-map')
|
||||||
|
|
Loading…
Reference in New Issue