1234567891011121314151617181920212223 |
- const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
- let config = {
- devtool: 'source-map',
- mode: 'production',
- target: "electron-main",
- entry: "./src/main/main.js",
- output: {
- path: __dirname + "/dist/main/",
- filename: "main.js"
- }
- // optimization: {
- // minimizer: [
- // new UglifyJSPlugin({
- // parallel: true,
- // sourceMap: true
- // })
- // ],
- // }
- };
- module.exports = config;
|