Skip to content

Releases: webdiscus/webpack-remove-empty-scripts

v1.0.4

28 Aug 17:08
Compare
Choose a tag to compare

v1.0.4

Bug Fixes

  • Removes needless double new lines in console output when the verbose option is enabled.

Chore

  • Added Community Standards files.
  • Updated dev packages.

Test

  • Removes the test strategy for node versions 12.x on GitHub to allows use the latest dev packages.
    The plugin is still compatible with node 12.x.
  • Added the test strategies for node versions 18.x and 20.x on GitHub.
  • Refactoring of test utilities.
  • Added tests for an alternative way using the html-bundler-webpack-plugin.

v1.0.3

11 Apr 08:51
Compare
Choose a tag to compare

No changes in code

Improvements

  • fix: fix interface syntax in TS
  • fix: options in constructor now is optional parameter in types for TS

v1.0.2

07 Apr 13:13
Compare
Choose a tag to compare

No changes in code

Improvements

  • fix: correctly export types for TS in index.d.ts when used CommonJS

Misc

  • chore: update dev packages

v1.0.1

15 Oct 10:58
Compare
Choose a tag to compare

BREAKING CHANGE

Reverted default behavior as in v0.8.1 - remove empty scripts before other plugins will be called. This change is needs for properly work of the vast majority of webpack plugins.

For compatibility with v0.8.2 - v0.8.4, if you have an issue, use new stage option with the value:

new RemoveEmptyScriptsPlugin({
  stage: RemoveEmptyScriptsPlugin.STAGE_AFTER_PROCESS_PLUGINS,
})

Features

  • add supports for TypeScript
  • add new stage option.
    Webpack plugins use different stages for their functionality.
    For properly work other plugins can be specified the stage when should be removed empty scripts: before or after processing of other Webpack plugins.
    For example, using @wordpress/dependency-extraction-webpack-plugin the empty scripts must be removed after processing all plugins.
    Using webpack-manifest-plugin the empty scripts must be removed before processing other plugins.

Bugfixes

  • keep extracted wordpress dependencies, #9
  • fix last stable version of ansis in package.json to avoid issues in dependency

The stable release 0.8.0

01 Apr 10:32
Compare
Choose a tag to compare

The last stable release.

  • added new option remove to define custom RegExp for generated assets that must be removed
  • update packages
  • update readme

The stable release 0.7.2

13 Dec 14:02
Compare
Choose a tag to compare
[RELEASE] The last stable release 0.7.2

- add new option `enable` to enable / disable the plugin, e.g. by development
- add support of `RegExp` for option `extensions`
- remove deprecated option `silent`, use `verbose` to show process information (no braking change)
- add GitHub workflow + codecov
- color verbose output
- update packages
- update readme