thingsboard/ui/node_modules/react-ace/webpack.config.production.js
2020-05-19 11:43:42 +03:00

21 lines
453 B
JavaScript

'use strict';
const webpack = require('webpack');
const baseConfig = require('./webpack.config.base');
const config = Object.create(baseConfig);
config.plugins = [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
new webpack.optimize.UglifyJsPlugin({
compressor: {
screw_ie8: true,
warnings: false,
},
}),
];
module.exports = config;