gulp-html-dependencies
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -19,3 +19,3 @@ /** | ||
, fs = require('fs') | ||
, url = require('resolve'); | ||
, url = require('url'); | ||
@@ -35,3 +35,3 @@ const PLUGIN_NAME = 'gulp-html-dependencies'; | ||
file.contents = new Buffer(file.contents.toString().replace(REGEX, (match, attr, quote, url, pathname, engine, filename) => { | ||
file.contents = new Buffer(file.contents.toString().replace(REGEX, (match, attr, quote, uri, pathname, engine, filename) => { | ||
const f = options.flat ? path.basename(filename) : filename; | ||
@@ -43,3 +43,3 @@ const dest_file = path.join(dest, f); | ||
mkdirp.sync(path.dirname(dest_file)); | ||
fs.createReadStream(path.resolve(path.dirname(file.path), url)) | ||
fs.createReadStream(path.resolve(path.dirname(file.path), uri)) | ||
.pipe(fs.createWriteStream(dest_file)); | ||
@@ -46,0 +46,0 @@ } catch(err) { |
{ | ||
"name": "gulp-html-dependencies", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Parse your HTML file and copy bower/npm files to your destination directory", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13038
9