assets-webpack-plugin
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -44,10 +44,13 @@ var mkdirp = require('mkdirp'); | ||
var output = options.processOutput(assets); | ||
fs.writeFile(outputPath, output, function (err) { | ||
if (err) { | ||
return next(error('Unable to write to ' + outputPath, err)); | ||
} | ||
firstRun = false; | ||
if (output !== data) { | ||
fs.writeFile(outputPath, output, function (err) { | ||
if (err) { | ||
return next(error('Unable to write to ' + outputPath, err)); | ||
} | ||
firstRun = false; | ||
next(); | ||
}); | ||
} else { | ||
next(); | ||
}); | ||
} | ||
}); | ||
@@ -54,0 +57,0 @@ }); |
{ | ||
"name": "assets-webpack-plugin", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Emits a json file with assets paths", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,2 +8,4 @@ assets-webpack-plugin | ||
__I'm looking for a new maintainer, please contact me if you are interested.__ | ||
## Why is this useful? | ||
@@ -136,3 +138,3 @@ | ||
__metadata__: Inject metadata into the into the output file. All values will be injected into the key "metadata". | ||
__metadata__: Inject metadata into the output file. All values will be injected into the key "metadata". | ||
@@ -213,2 +215,4 @@ ```js | ||
__3.4.0__ Do not write to assets file if output hasn't changed | ||
__3.2.0__ Added `processOutput` option | ||
@@ -215,0 +219,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
35606
954
219