29 lines
602 B
JavaScript
29 lines
602 B
JavaScript
import { ESBuildMinifyPlugin } from "esbuild-loader";
|
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
|
|
export default {
|
|
target: "web",
|
|
mode: "production",
|
|
devtool: false,
|
|
optimization: {
|
|
minimizer: [
|
|
new ESBuildMinifyPlugin({
|
|
target: "es2015",
|
|
css: true,
|
|
legalComments: "eof",
|
|
sourcemap: false,
|
|
minifyWhitespace: true,
|
|
}),
|
|
],
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: "[name].[contenthash].css",
|
|
chunkFilename: "[id].[contenthash].css",
|
|
}),
|
|
],
|
|
performance: {
|
|
hints: false,
|
|
},
|
|
};
|