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

gulp-usemin

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-usemin - npm Package Compare versions

Comparing version 0.3.23 to 0.3.24

15

lib/blocksBuilder.js

@@ -63,11 +63,12 @@ var fs = require('fs');

var filepaths = glob.sync(paths[i]);
if(filepaths[0] === undefined) {
if(filepaths[0] === undefined && !options.skipMissingResources) {
throw new gutil.PluginError('gulp-usemin', 'Path ' + paths[i] + ' not found!');
} else {
filepaths.forEach(function (filepath) {
files.push(new gutil.File({
path: filepath,
contents: fs.readFileSync(filepath)
}));
});
}
filepaths.forEach(function (filepath) {
files.push(new gutil.File({
path: filepath,
contents: fs.readFileSync(filepath)
}));
});
}

@@ -74,0 +75,0 @@

{
"name": "gulp-usemin",
"version": "0.3.23",
"version": "0.3.24",
"description": "Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views).",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -168,2 +168,7 @@ [![Build Status](https://travis-ci.org/zont/gulp-usemin.svg?branch=master)](https://travis-ci.org/zont/gulp-usemin)

#### skipMissingResources
Type: `Boolean`
Allows missing resources to be skipped, instead of throwing an error.
## Use case

@@ -239,2 +244,5 @@

#####0.3.24
- Added option to skip missing resources (by adamhenson)
#####0.3.23

@@ -241,0 +249,0 @@ - Added support array value for cssAttributes (by MillerRen)

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