Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"version": "0.2",
"language": "en,en-gb",
"words": ["memfs", "pathinfo", "commitlint", "nodenext"],

"words": ["memfs", "pathinfo", "commitlint", "nodenext", "eslintcache"],
"ignorePaths": [
"CHANGELOG.md",
"package.json",
Expand Down
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ logs
*.log
npm-debug.log*
.eslintcache
.cspellcache
/coverage
/dist
/local
Expand Down
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Then add the plugin to your `webpack` configuration. For example:
**webpack.config.js**

```js
const JsonMinimizerPlugin = require("json-minimizer-webpack-plugin");
const CopyPlugin = require("copy-webpack-plugin");
const JsonMinimizerPlugin = require("json-minimizer-webpack-plugin");

module.exports = {
module: {
Expand Down Expand Up @@ -87,7 +87,7 @@ Finally, run `webpack` using the method you normally use (e.g., via CLI or an np
Type:

```ts
type test = string | RegExp | Array<string | RegExp>;
type test = string | RegExp | (string | RegExp)[];
```

Default: `/\.json(\?.*)?$/i`
Expand All @@ -112,7 +112,7 @@ module.exports = {
Type:

```ts
type include = string | RegExp | Array<string | RegExp>;
type include = string | RegExp | (string | RegExp)[];
```

Default: `undefined`
Expand All @@ -139,7 +139,7 @@ module.exports = {
Type:

```ts
type exclude = string | RegExp | Array<string | RegExp>;
type exclude = string | RegExp | (string | RegExp)[];
```

Default: `undefined`
Expand All @@ -165,11 +165,13 @@ module.exports = {

Type:

<!-- eslint-skip -->

```ts
type minimizerOptions = {
interface minimizerOptions {
space?: null | string | number;
replacer?: null | Function | Array<string | number>;
};
replacer?: null | Function | (string | number)[];
}
```

Default: `{ replacer: null, space: null }`
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "eslint/config";
import configs from "eslint-config-webpack/configs.js";

export default defineConfig([
{
extends: [configs["recommended-dirty"]],
},
]);
Loading
Loading