text: import TerserPlugin from "terser-webpack-plugin";
  import OptimizeCSSAssetsPlugin from "optimize-css-assets-webpack-plugin";
  import {CleanWebpackPlugin} from "clean-webpack-plugin";
  import merge from "webpack-merge";
  import baseConfig from "./webpack.config";
  
  const CONTEX_PATH = "/parser-generator/";
  
  export default merge(baseConfig,{
  	mode: "production",
  	output: {
  		publicPath: CONTEX_PATH,
  	},
  	devtool: false,
  	// devtool: "nosources-source-map",
  	optimization: {
  		sideEffects: true,
  		minimize: true,
  		minimizer: [
  			new TerserPlugin({
  				chunkFilter:(chunk)=>{
  					if(chunk.name == "pgen"){
  						return false;
  					}
  					return true;
  				},
  				terserOptions: {
  					compress: {
  						drop_console: false,
  					},
  					output: {
  						comments: false,
  					},
  				},
  			}),
  			new OptimizeCSSAssetsPlugin({})
  		],
  	},
  	plugins: [
  		new CleanWebpackPlugin(),
  	]
  });
  