aboutsummaryrefslogtreecommitdiffstats
path: root/config/webpack/production.js
blob: 8e30c09eab49006f1b00726e0dbc14798e7037a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const environment = require('./environment')
const webpack = require('webpack')
const UglifyJsPlugin = require('uglify-js')

let plugin = new webpack.EnvironmentPlugin({
	NODE_ENV: 'production'
})

environment.plugins.append('EnvironmentPlugin', plugin)
environment.plugins.append(
  'UglifyJs',
  new webpack.optimize.UglifyJsPlugin({
    compress: {
      warnings: false
    }
  })
)

module.exports = environment.toWebpackConfig()