initial commit
This commit is contained in:
28
webpack/prod.js
Normal file
28
webpack/prod.js
Normal file
@@ -0,0 +1,28 @@
|
||||
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,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user