- add further views
- also use constants via Webpack DefinePlugin
This commit is contained in:
parent
952f51a1a7
commit
2c0c67cd64
11 changed files with 144 additions and 115 deletions
|
|
@ -1,3 +1,24 @@
|
|||
const webpack = require('webpack');
|
||||
|
||||
module.exports = {
|
||||
publicPath: "/"
|
||||
publicPath: "/",
|
||||
// chainWebpack: config => {
|
||||
// config
|
||||
// .plugin('define')
|
||||
// .tap(args => {
|
||||
// args[0] = {
|
||||
// ...args[0],
|
||||
// VUE_APP_PORTAL: JSON.stringify(process.env.PORTAL),
|
||||
// // other stuff
|
||||
// }
|
||||
// return args
|
||||
// })
|
||||
// },
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
|
||||
}),
|
||||
],
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue