Artifact Content
Not logged in

Artifact 40e2f5ab1898eb4b63bab841c331ba2116d7e6eb:


'use strict'

const webpack = require('webpack')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')

const cfg = require('./webpack.config.js')
cfg.forEach((config) => config.plugins.push(
	new webpack.DefinePlugin({
		'process.env': {
			NODE_ENV: JSON.stringify('production'),
		},
	}),
	new webpack.LoaderOptionsPlugin({
		minimize: true,
		debug: false,
	}),
	new UglifyJSPlugin()
))

module.exports = cfg