Skip to content

Commit 1d66def

Browse files
committed
feat(ui): add var VUE_APP_BUILD_TYPE
1 parent 4d3b35e commit 1d66def

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/vue.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
const webpack = require('webpack');
2+
13
module.exports = {
24
configureWebpack: {
5+
plugins: [
6+
new webpack.DefinePlugin({
7+
'process.env.VUE_APP_BUILD_TYPE': JSON.stringify(process.env.VUE_APP_BUILD_TYPE),
8+
}),
9+
],
310
devServer: {
411
historyApiFallback: true,
512
proxy: {

0 commit comments

Comments
 (0)