gulp-useref
Advanced tools
+8
-2
@@ -37,2 +37,3 @@ 'use strict'; | ||
| vfs = require('vinyl-fs'), | ||
| extend = require('extend'), | ||
| src, | ||
@@ -43,3 +44,4 @@ globs, | ||
| filepaths = files[name].assets, | ||
| options = pluginOptions, | ||
| type = paths.type, | ||
| options = extend({}, pluginOptions), | ||
| gulpConcatOptions = {}; | ||
@@ -80,2 +82,5 @@ | ||
| if (options.hasOwnProperty('newLine')) { | ||
| if (options.newLine === ';' && type === 'css') { | ||
| options.newLine = null; | ||
| } | ||
| gulpConcatOptions.newLine = options.newLine; | ||
@@ -127,3 +132,4 @@ } | ||
| cwd: file.cwd, | ||
| transformPath: pluginOptions.transformPath | ||
| transformPath: pluginOptions.transformPath, | ||
| type: type | ||
| }, files); | ||
@@ -130,0 +136,0 @@ } |
+14
-13
| { | ||
| "name": "gulp-useref", | ||
| "version": "3.1.4", | ||
| "version": "3.1.5", | ||
| "description": "Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.", | ||
@@ -10,21 +10,22 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "event-stream": "^3.3.1", | ||
| "glob": "^7.0.3", | ||
| "gulp-concat": "^2.5.2", | ||
| "gulp-if": "^2.0.0", | ||
| "event-stream": "^3.3.4", | ||
| "extend": "^3.0.1", | ||
| "glob": "^7.1.2", | ||
| "gulp-concat": "^2.6.1", | ||
| "gulp-if": "^2.0.2", | ||
| "is-relative-url": "1.0.0", | ||
| "plugin-error": "^0.1.2", | ||
| "through2": "^2.0.1", | ||
| "useref": "^1.2.0", | ||
| "vinyl-fs": "^3.0.0" | ||
| "plugin-error": "^1.0.1", | ||
| "through2": "^2.0.3", | ||
| "useref": "^1.4.1", | ||
| "vinyl-fs": "^3.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "coveralls": "^3.0.0", | ||
| "gulp": "^3.9.0", | ||
| "gulp-eslint": "^4.0.0", | ||
| "gulp-mocha": "^4.3.1", | ||
| "gulp": "^3.9.1", | ||
| "gulp-eslint": "^4.0.2", | ||
| "gulp-mocha": "^5.0.0", | ||
| "gulp-rename": "^1.2.2", | ||
| "mocha": "*", | ||
| "mock-gulp-dest": "^0.1.1", | ||
| "nyc": "^11.3.0", | ||
| "nyc": "^11.4.1", | ||
| "should": "*", | ||
@@ -31,0 +32,0 @@ "vinyl": "^2.1.0" |
+1
-1
@@ -88,3 +88,3 @@ # [gulp](https://github.com/gulpjs/gulp)-useref [](https://travis-ci.org/jonkemp/gulp-useref) [](https://coveralls.io/github/jonkemp/gulp-useref?branch=master) | ||
| - **type**: either `js`, `css` or `remove`; `remove` will remove the build block entirely without generating a file | ||
| - **alternate search path**: (optional) By default the input files are relative to the treated file. Alternate search path allows one to change that | ||
| - **alternate search path**: (optional) By default the input files are relative to the treated file. Alternate search path allows one to change that. The path can also contain a sequence of paths processed from right to left, using JSON brace array notation e.g `<!-- build:js({path1,path2}) js/lib.js -->`. | ||
| - **path**: the file path of the optimized file, the target output | ||
@@ -91,0 +91,0 @@ - **parameters**: extra parameters that should be added to the tag |
20331
1.95%301
2.03%10
11.11%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated