gulp-usemin
Advanced tools
Comparing version 0.3.23 to 0.3.24
@@ -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) |
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
52489
878
349