Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assets-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assets-webpack-plugin - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0

17

lib/output/createOutputWriter.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc