Separate app and web builds

This commit is contained in:
Joel Collins 2019-06-02 21:15:32 +01:00
parent adfec0bbfe
commit 396adca35f

View file

@ -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: ''
}