webpack-desktop.config.js 350 B

123456789101112131415
  1. const path = require('path');
  2. module.exports = {
  3. mode: 'production',
  4. entry: {
  5. mobile: './src/public/app/desktop.js',
  6. },
  7. output: {
  8. publicPath: 'app-dist/',
  9. path: path.resolve(__dirname, 'src/public/app-dist'),
  10. filename: 'desktop.js'
  11. },
  12. devtool: 'source-map',
  13. target: 'electron-renderer'
  14. };