You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
## 0.6.4 (Dec 19, 2020)
2
+
- Bugfix the error: `Maximum call stack size exceeded` with webpack setting `optimization.concatenateModules: true`and usage in script imports from `react` and `redux`.
3
+
- Add test case for single style without a scripts in webpack config.
4
+
- Add silent mode in tests to suppress output log info in the console.
5
+
- The option `ignore` can be the array of string or RegExp. Add default value of `ignore` as `['/node_modules/']` to ignore resources from `node_modules` path.
6
+
- Update npm packages.
7
+
1
8
## 0.6.3 (Oct 25, 2020)
2
9
Fix BREAKING CHANGE in Webpack 5: No more changes should happen to `Compilation.assets`. Update code accord new API.
View on: [Github](https://github.com/fqborges/webpack-fix-style-only-entries) - [npm](https://www.npmjs.com/package/webpack-fix-style-only-entries)
13
+
This is a fork of original plugin https://github.com/fqborges/webpack-fix-style-only-entries (ver. 0.6.0).
14
+
In this fork fixed some deprecation messages and integration tests for Webpack 5. See the details in [changelog](https://github.com/webdiscus/webpack-remove-empty-scripts/blob/master/CHANGELOG.md#061-oct-20-2020).
15
+
16
+
The plugin support only **Webpack 5** using new ChunkGraph and ModuleGraph APIs.
17
+
For **Webpack 4** use original [plugin](https://github.com/fqborges/webpack-fix-style-only-entries).
13
18
14
-
## How it works
15
-
It just find js files from chunks of css only entries and remove the js file from the compilation.
19
+
View on: [GitHub](https://github.com/webdiscus/webpack-remove-empty-scripts), [npmjs](https://www.npmjs.com/package/webpack-remove-empty-scripts)
| ignore | string or RegExp or Array[string] or Array[RegExp]|['/node_modules/']| match resource path to be ignored, defaults the resources from `node_modules` are ignored|
62
62
63
63
### Example config:
64
-
// to identify only 'foo' and 'bar' extensions as styles
65
-
new FixStyleOnlyEntriesPlugin({ extensions:['foo', 'bar'] }),
64
+
```JavaScript
65
+
// supress logs to console, use it for production
66
+
newRemoveEmptyScriptsPlugin({ silent:true })
67
+
```
68
+
69
+
```JavaScript
70
+
// to identify only 'foo' and 'bar' extensions as styles
Give an especial extension to your file (`.css.js` for example) and configure `new FixStyleOnlyEntriesPlugin({ extensions:['css.js'] })`. See: https://github.com/fqborges/webpack-fix-style-only-entries/issues/8.
77
+
Give an especial extension to your file (`.css.js` for example) and configure `new RemoveEmptyScriptsPlugin({ extensions:['css.js'] })`.
71
78
72
79
### I use webpack-hot-middleware:
73
-
Configure this plugin as `new FixStyleOnlyEntriesPlugin({ ignore: 'webpack-hot-middleware' })`. See: https://github.com/fqborges/webpack-fix-style-only-entries/issues/12 and https://github.com/fqborges/webpack-fix-style-only-entries/blob/master/test/cases/css-entry-with-ignored-hmr/webpack.config.js.
80
+
Configure this plugin as `new RemoveEmptyScriptsPlugin({ ignore: 'webpack-hot-middleware' })`. See: https://github.com/webdiscus/webpack-remove-empty-scripts/blob/master/test/cases/css-entry-with-ignored-hmr/webpack.config.js
0 commit comments