Separate app and web builds
This commit is contained in:
parent
adfec0bbfe
commit
396adca35f
1 changed files with 12 additions and 0 deletions
|
|
@ -1,3 +1,15 @@
|
|||
module.exports = {
|
||||
configureWebpack: config => {
|
||||
config.target = process.env.VUE_APP_TARGET || 'web',
|
||||
config.entry = (process.env.VUE_APP_TARGET == 'electron-renderer')
|
||||
? {
|
||||
main: './src/main.js',
|
||||
app: './src/main.app.js'
|
||||
}
|
||||
:{
|
||||
main: './src/main.js',
|
||||
}
|
||||
},
|
||||
outputDir: (process.env.VUE_APP_TARGET == 'electron-renderer') ? './app/dist' : './dist',
|
||||
publicPath: ''
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue