Commit 396adca3 authored by Joel Collins's avatar Joel Collins
Browse files

Separate app and web builds

parent adfec0bb
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
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: ''
}
 No newline at end of file