Blame view

config/electron/webpack.electron.prod.js 650 Bytes
05b0b5d8   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  const webpack             = require('webpack');
  const webpackMerge        = require('webpack-merge');
  const commonConfig        = require('./webpack.electron.common.js');
  
  const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
  
  module.exports = webpackMerge(commonConfig, {
    plugins: [
      // new webpack.optimize.DedupePlugin(),
      new webpack.optimize.UglifyJsPlugin({
        beautify: false,
        mangle: {
          screw_ie8: true
        },
        compress: {
          screw_ie8: true
        },
        comments: false
      }),
      new webpack.DefinePlugin({
        'process.env': {
          'ENV': JSON.stringify(ENV)
        }
      })
    ]
  });