halo-admin/vue.config.js

30 lines
549 B
JavaScript
Raw Normal View History

const pkg = require('./package.json')
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
publicPath: process.env.PUBLIC_PATH,
2019-03-20 12:22:52 +00:00
chainWebpack: config => {
config.plugin('html').tap(args => {
args[0].version = pkg.version
return args
})
},
2019-03-20 12:22:52 +00:00
css: {
loaderOptions: {
less: {
modifyVars: {
'border-radius-base': '2px'
},
2019-03-20 12:22:52 +00:00
javascriptEnabled: true
}
}
},
lintOnSave: false,
transpileDependencies: [],
productionSourceMap: false
})