webpack.config.main.js 522 B

1234567891011121314151617181920212223
  1. const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
  2. let config = {
  3. devtool: 'source-map',
  4. mode: 'production',
  5. target: "electron-main",
  6. entry: "./src/main/main.js",
  7. output: {
  8. path: __dirname + "/dist/main/",
  9. filename: "main.js"
  10. }
  11. // optimization: {
  12. // minimizer: [
  13. // new UglifyJSPlugin({
  14. // parallel: true,
  15. // sourceMap: true
  16. // })
  17. // ],
  18. // }
  19. };
  20. module.exports = config;