remove-files-webpack-plugin
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,8 @@ | ||
# 1.1.2 (April 4, 2019) | ||
## Fixed | ||
- Fix compatibility with webpack 3.x [#3](Amaimersion/remove-files-webpack-plugin#3). | ||
# 1.1.1 (March 20, 2019) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "remove-files-webpack-plugin", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A plugin for webpack which removes files and folders before and after compilation.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
/** | ||
* @module RemoveFilesWebpackPlugin | ||
* @version 1.1.1 | ||
* @version 1.1.2 | ||
* @file A plugin for webpack which removes files and folders before and after compilation. | ||
@@ -5,0 +5,0 @@ * @author Sergey Kuznetsov <https://github.com/Amaimersion> |
@@ -19,3 +19,3 @@ 'use strict'; | ||
static get version() { | ||
return '1.1.1'; | ||
return '1.1.2'; | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -138,3 +138,3 @@ 'use strict'; | ||
*/ | ||
const applyHook = (compiler, hook, params, method) => { | ||
const applyHook = (compiler, v4Hook, v3Hook, params, method) => { | ||
if (!params || !Object.keys(params).length) { | ||
@@ -145,12 +145,12 @@ return; | ||
if (compiler.hooks) { | ||
compiler.hooks[hook].tapAsync(Info.fullName, method); | ||
compiler.hooks[v4Hook].tapAsync(Info.fullName, method); | ||
} else { | ||
compiler.plugin(hook, method); | ||
compiler.plugin(v3Hook, method); | ||
} | ||
}; | ||
applyHook(compiler, 'beforeRun', this.beforeParams, (compiler, callback) => { | ||
applyHook(compiler, 'beforeRun', 'before-run', this.beforeParams, (compiler, callback) => { | ||
this.handleHook(compiler, callback, this.beforeParams); | ||
}); | ||
applyHook(compiler, 'afterEmit', this.afterParams, (compilation, callback) => { | ||
applyHook(compiler, 'afterEmit', 'after-emit', this.afterParams, (compilation, callback) => { | ||
this.handleHook(compilation, callback, this.afterParams); | ||
@@ -157,0 +157,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
35771
0