From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/terser-webpack-plugin/README.md | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/node_modules/terser-webpack-plugin/README.md b/node_modules/terser-webpack-plugin/README.md
index f344cc3..76effca 100644
--- a/node_modules/terser-webpack-plugin/README.md
+++ b/node_modules/terser-webpack-plugin/README.md
@@ -815,6 +815,31 @@
};
```
+### JSON
+
+Uses `JSON.stringify()` to minify your JSON files during the build process.
+
+**webpack.config.js**
+
+```js
+module.exports = {
+ optimization: {
+ minimize: true,
+ minimizer: [
+ // Keeps original terser plugin to minify JS files
+ "...",
+ // Will minify JSON files (they can come from copy-webpack-plugin or when you are using asset modules)
+ new TerserPlugin({
+ test: /\.json$/,
+ minify: TerserPlugin.jsonMinify,
+ // We are supporting `space` and `replacer` options, you can set them below
+ terserOptions: {},
+ }),
+ ],
+ },
+};
+```
+
### Custom Minify Function
Override the default minify function - use `uglify-js` for minification.
--
Gitblit v1.9.3