mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-10-29 09:52:36 +00:00
31 lines
556 B
JavaScript
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 */
|
|
}),
|
|
],
|
|
},
|
|
};
|