clean-webpack-plugin
Advanced tools
Comparing version 0.1.11 to 0.1.12
14
index.js
@@ -54,3 +54,3 @@ 'use strict'; | ||
Plugin.prototype.apply = function () { | ||
var clean = function () { | ||
var _this = this; | ||
@@ -181,2 +181,14 @@ var results = []; | ||
Plugin.prototype.apply = function (compiler) { | ||
var _this = this; | ||
if (compiler === undefined) { | ||
return clean.call(_this); | ||
} | ||
else { | ||
compiler.plugin("compile", function (params) { | ||
clean.call(_this); | ||
}); | ||
} | ||
}; | ||
module.exports = Plugin; |
{ | ||
"name": "clean-webpack-plugin", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"author": "John Agan <johnagan@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "A webpack plugin to remove your build folder(s) before building", |
9734
164