Files
wlan-cloud-ui/webpack.config.js
Sean Macfarlane f4292b2e11 init
2020-03-09 15:42:46 -04:00

31 lines
556 B
JavaScript

const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: `${__dirname }/dist`,
publicPath: '/',
filename: 'bundle.js',
},
devServer: {
contentBase: './dist',
},
module: {
rules: [
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader', 'eslint-loader'],
},
],
},
mode: 'production',
optimization: {
minimizer: [
new TerserPlugin({
/* additional options here */
}),
],
},
};