string-replace-webpack-plugin
Advanced tools
Comparing version 0.0.5 to 0.1.2
@@ -0,1 +1,4 @@ | ||
## v0.1.1 | ||
* Don't save options on the compiler for Webpack 2.2 compatibility (@CntChen) | ||
## v0.1.0 | ||
@@ -2,0 +5,0 @@ * API docs fix (@p2227) |
@@ -9,4 +9,7 @@ /* | ||
function StringReplacePlugin() {} | ||
StringReplacePlugin.REPLACE_OPTIONS = '_string-replace-plugin-options'; | ||
// export the replacement options | ||
// so that the loader can refer to them | ||
StringReplacePlugin.REPLACE_OPTIONS = opts; | ||
module.exports = StringReplacePlugin; | ||
@@ -53,5 +56,2 @@ | ||
StringReplacePlugin.prototype.apply = function(compiler) { | ||
// add the replacement options onto the compiler options | ||
// so that the loader can refer to them | ||
compiler.options[StringReplacePlugin.REPLACE_OPTIONS] = opts; | ||
}; |
@@ -11,3 +11,3 @@ /* | ||
var stringReplaceOptions = this.options[StringReplacePlugin.REPLACE_OPTIONS]; | ||
var stringReplaceOptions = StringReplacePlugin.REPLACE_OPTIONS; | ||
if(!stringReplaceOptions.hasOwnProperty(id)) { | ||
@@ -14,0 +14,0 @@ this.emitWarning('no replacement options found for id ' + id); |
{ | ||
"name": "string-replace-webpack-plugin", | ||
"version": "0.0.5", | ||
"version": "0.1.2", | ||
"author": "James Andersen @jandersen78", | ||
"description": "Replace string tokens in the contents of a file.", | ||
"peerDependencies": { | ||
"webpack": "^1.4.2 || >=2.2.0-rc.0" | ||
"webpack": "^1.4.2 || >=2.2.0" | ||
}, | ||
@@ -15,3 +15,3 @@ "dependencies": { | ||
"mocha": "^2.2.1", | ||
"webpack": "*" | ||
"webpack": "^2.2.1" | ||
}, | ||
@@ -18,0 +18,0 @@ "optionalDependencies": { |
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
12481
170