filemanager-webpack-plugin
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -9,12 +9,2 @@ 'use strict'; | ||
var classCallCheck = function (instance, Constructor) { | ||
@@ -44,42 +34,2 @@ if (!(instance instanceof Constructor)) { | ||
var toConsumableArray = function (arr) { | ||
@@ -240,3 +190,3 @@ if (Array.isArray(arr)) { | ||
* If the supplied destination is a directory copy inside. | ||
* If the supplied destination is a directory that does not exist yet create it & copy inside | ||
* If the supplied destination is a directory that does not exist yet create it & copy inside | ||
*/ | ||
@@ -459,21 +409,31 @@ | ||
value: function apply(compiler) { | ||
var _this4 = this; | ||
var that = this; | ||
compiler.plugin("compilation", function (compliation) { | ||
var comp = function comp(compilation) { | ||
try { | ||
_this4.checkOptions("onStart"); | ||
that.checkOptions("onStart"); | ||
} catch (error) { | ||
compliation.errors.push(error); | ||
compilation.errors.push(error); | ||
} | ||
}); | ||
}; | ||
compiler.plugin("after-emit", function (compliation, callback) { | ||
_this4.fileHash = compliation.hash; | ||
var afterEmit = function afterEmit(compilation, cb) { | ||
that.fileHash = compilation.hash; | ||
try { | ||
_this4.checkOptions("onEnd"); | ||
that.checkOptions("onEnd"); | ||
} catch (error) { | ||
compliation.errors.push(error); | ||
compilation.errors.push(error); | ||
} | ||
callback(); | ||
}); | ||
cb(); | ||
}; | ||
if (compiler.hooks) { | ||
compiler.hooks.compilation.tap("compilation", comp); | ||
compiler.hooks.afterEmit.tapAsync("afterEmit", afterEmit); | ||
} else { | ||
compiler.plugin("compilation", comp); | ||
compiler.plugin("after-emit", afterEmit); | ||
} | ||
} | ||
@@ -480,0 +440,0 @@ }]); |
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds", | ||
@@ -11,4 +11,6 @@ "main": "lib/index.js", | ||
"build": "npm run prettier && rollup -c", | ||
"test": "rimraf testing && ava --verbose test.js", | ||
"prettier": "find src/ -name \"*.js\" | xargs prettier --write", | ||
"test": "npm run test-webpack3 && npm run test-webpack4", | ||
"test-webpack3": "cd tests/webpack-3 && npm install && npm run test", | ||
"test-webpack4": "cd tests/webpack-4 && npm install && npm run test", | ||
"prettier": "prettier --write src/index.js", | ||
"webpack": "webpack --progress", | ||
@@ -42,7 +44,8 @@ "webpack-dev-server": "webpack-dev-server --colors --progress" | ||
"prettier": "^1.10.2", | ||
"rollup": "^0.55.1", | ||
"webpack": "^4.2.0", | ||
"webpack-cli": "2.0.12", | ||
"webpack-dev-server": "^3.1.1", | ||
"rollup": "^0.57.1", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"webpack": "^3.10.0", | ||
"webpack-dev-server": "^2.11.1" | ||
"rollup-plugin-node-resolve": "^3.0.0" | ||
}, | ||
@@ -49,0 +52,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
43361
362
17