gulp-useref
Advanced tools
+5
-3
@@ -35,3 +35,2 @@ 'use strict'; | ||
| concat = require('gulp-concat'), | ||
| isRelativeUrl = require('is-relative-url'), | ||
| vfs = require('vinyl-fs'), | ||
@@ -56,3 +55,6 @@ extend = require('extend'), | ||
| globs = filepaths | ||
| .filter(isRelativeUrl) | ||
| .filter(function (url) { | ||
| // test if url is relative | ||
| return !/^(?:\w+:)?\/\//.test(url); | ||
| }) | ||
| .map(function (filepath) { | ||
@@ -81,3 +83,3 @@ paths.filepath = filepath; | ||
| // option for newLine in gulp-concat | ||
| if (options.hasOwnProperty('newLine')) { | ||
| if (Object.prototype.hasOwnProperty.call(options, 'newLine')) { | ||
| if (options.newLine === ';' && type === 'css') { | ||
@@ -84,0 +86,0 @@ options.newLine = null; |
@@ -9,3 +9,3 @@ 'use strict'; | ||
| try { | ||
| file.contents = new Buffer(data); | ||
| file.contents = Buffer.from(data); | ||
| self.push(file); | ||
@@ -12,0 +12,0 @@ } catch (err) { |
+11
-11
| { | ||
| "name": "gulp-useref", | ||
| "version": "3.1.6", | ||
| "version": "4.0.0", | ||
| "description": "Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.", | ||
@@ -12,20 +12,20 @@ "main": "index.js", | ||
| "extend": "^3.0.2", | ||
| "glob": "^7.1.3", | ||
| "glob": "^7.1.4", | ||
| "gulp-concat": "^2.6.1", | ||
| "gulp-if": "^2.0.2", | ||
| "is-relative-url": "1.0.0", | ||
| "gulp-if": "^3.0.0", | ||
| "plugin-error": "^1.0.1", | ||
| "through2": "^2.0.3", | ||
| "useref": "^1.4.1", | ||
| "through2": "^3.0.1", | ||
| "useref": "^1.4.2", | ||
| "vinyl-fs": "^3.0.3" | ||
| }, | ||
| "devDependencies": { | ||
| "coveralls": "^3.0.2", | ||
| "gulp": "^3.9.1", | ||
| "gulp-eslint": "^5.0.0", | ||
| "gulp-mocha": "^6.0.0", | ||
| "async-once": "^1.0.1", | ||
| "coveralls": "^3.0.6", | ||
| "gulp": "^4.0.2", | ||
| "gulp-eslint": "^6.0.0", | ||
| "gulp-mocha": "^7.0.2", | ||
| "gulp-rename": "^1.4.0", | ||
| "mocha": "*", | ||
| "mock-gulp-dest": "^0.1.1", | ||
| "nyc": "^13.1.0", | ||
| "nyc": "^14.1.1", | ||
| "should": "*", | ||
@@ -32,0 +32,0 @@ "vinyl": "^2.2.0" |
20399
0.33%9
-10%303
0.66%11
10%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated