@@ -40,8 +40,8 @@ Then add the plugin to your `webpack` configuration. For example:
4040** webpack.config.js**
4141
4242``` js
43- const JsonMinimizerPlugin = require (" json-minimizer-webpack-plugin" );
4443const CopyPlugin = require (" copy-webpack-plugin" );
44+ const JsonMinimizerPlugin = require (" json-minimizer-webpack-plugin" );
4545
4646module .exports = {
4747 module: {
@@ -87,7 +87,7 @@ Finally, run `webpack` using the method you normally use (e.g., via CLI or an np
8787Type:
8888
8989``` ts
90- type test = string | RegExp | Array < string | RegExp > ;
90+ type test = string | RegExp | ( string | RegExp )[] ;
9191```
9292
9393Default: ` /\.json(\?.*)?$/i `
@@ -112,7 +112,7 @@ module.exports = {
112112Type:
113113
114114``` ts
115- type include = string | RegExp | Array < string | RegExp > ;
115+ type include = string | RegExp | ( string | RegExp )[] ;
116116```
117117
118118Default: ` undefined `
@@ -139,7 +139,7 @@ module.exports = {
139139Type:
140140
141141``` ts
142- type exclude = string | RegExp | Array < string | RegExp > ;
142+ type exclude = string | RegExp | ( string | RegExp )[] ;
143143```
144144
145145Default: ` undefined `
@@ -165,11 +165,13 @@ module.exports = {
165165
166166Type:
167167
168+ <!-- eslint-skip -->
169+
168170``` ts
169- type minimizerOptions = {
171+ interface minimizerOptions {
170172 space? : null | string | number ;
171- replacer? : null | Function | Array < string | number > ;
172- };
173+ replacer? : null | Function | ( string | number )[] ;
174+ }
173175```
174176
175177Default: ` { replacer: null, space: null } `
0 commit comments