mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
synced 2025-10-30 02:12:33 +00:00
37 lines
984 B
JavaScript
37 lines
984 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
/* eslint-disable prefer-template */
|
|
const { merge } = require('webpack-merge');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
const paths = require('./paths');
|
|
const common = require('./webpack.common');
|
|
|
|
module.exports = merge(common, {
|
|
mode: 'production',
|
|
devtool: false,
|
|
output: {
|
|
path: paths.build,
|
|
publicPath: '/',
|
|
filename: 'js/[name].[contenthash].bundle.js',
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: 'styles/[name].[contenthash].css',
|
|
chunkFilename: '[contenthash].css',
|
|
}),
|
|
],
|
|
module: {
|
|
rules: [],
|
|
},
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [`...`, new TerserPlugin(), new CssMinimizerPlugin()],
|
|
},
|
|
performance: {
|
|
hints: false,
|
|
maxEntrypointSize: 512000,
|
|
maxAssetSize: 512000,
|
|
},
|
|
});
|