v1.0.1
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
stageoption.
Webpack plugins use different stages for their functionality.
For properly work other plugins can be specified thestagewhen should be removed empty scripts: before or after processing of other Webpack plugins.
For example, using@wordpress/dependency-extraction-webpack-pluginthe empty scripts must be removedafterprocessing all plugins.
Usingwebpack-manifest-pluginthe empty scripts must be removedbeforeprocessing other plugins.
Bugfixes
- keep extracted wordpress dependencies, #9
- fix last stable version of ansis in package.json to avoid issues in dependency