gancio-upstream/client/vue.config.js
2019-03-07 22:39:12 +01:00

21 lines
696 B
JavaScript

const webpack = require('webpack')
process.env.VUE_APP_API = process.env.NODE_ENV === 'production' ? process.env.BASE_URL || 'http://localhost:9000' : 'http://localhost:9000'
process.env.VUE_APP_TITLE = process.env.TITLE || 'Gancio'
process.env.VUE_APP_DESCRIPTION = process.env.DESCRIPTION || 'Event manager for radical movements'
module.exports = {
publicPath: process.env.BASE_URL,
configureWebpack: {
plugins: [
new webpack.NormalModuleReplacementPlugin(/element-ui[\/\\]lib[\/\\]locale[\/\\]lang[\/\\]zh-CN/, 'element-ui/lib/locale/lang/en')
]
},
devServer: {
disableHostCheck: true
},
transpileDependencies: [
/\bvue-awesome\b/,
'vuex-persist'
]
}