grunt-html-build
Advanced tools
Comparing version 0.5.1 to 0.5.2
{ | ||
"name": "grunt-html-build", | ||
"description": "Grunt HTML Builder - Appends scripts and styles, Removes debug parts, append html partials, Template options", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"homepage": "https://github.com/spatools/grunt-html-build.git", | ||
"license": "MIT", | ||
"author": { | ||
@@ -21,3 +22,4 @@ "name": "SPA Tools", | ||
"dependencies": { | ||
"js-beautify": "^1.5.5" | ||
"js-beautify": "^1.5.10", | ||
"lodash":"^3.10.1" | ||
}, | ||
@@ -24,0 +26,0 @@ "keywords": [ |
@@ -226,1 +226,5 @@ # grunt-html-build [![NPM version](https://badge.fury.io/js/grunt-html-build.png)](http://badge.fury.io/js/grunt-html-build) | ||
* Fix issue in linefeed simplification | ||
* 0.5.2 | ||
* Fix issue in relative path management | ||
* Remove deprecated undercore reference and replace by lodash dependency | ||
* Fix deep array flattening for Node.JS >= 4 |
@@ -31,3 +31,3 @@ /* | ||
var // Init | ||
_ = grunt.util._, | ||
_ = require('lodash'), | ||
EOL = grunt.util.linefeed, | ||
@@ -94,3 +94,4 @@ URL = require('url'), | ||
var local = grunt.file.expand(opt, pathes), | ||
remote = _.map(pathes, path.normalize).filter(function (path) { //for loading from cdn | ||
flattenPaths = _.isArray(pathes) ? _.flattenDeep(pathes) : pathes, | ||
remote = _.map(flattenPaths, path.normalize).filter(function (path) { //for loading from cdn | ||
return /^((http|https):)?(\\|\/\/)/.test(path); //is http, https, or // | ||
@@ -205,5 +206,6 @@ }); | ||
else { | ||
var destDir = options.relative && isFileRegex.test(options.dest) ? path.dirname(options.dest) : options.dest; | ||
return options.files.map(function (f) { | ||
var url = options.relative ? path.relative(options.dest, f) : f; | ||
var url = options.relative ? path.relative(destDir, f) : f; | ||
url = url.replace(/\\/g, '/'); | ||
@@ -210,0 +212,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42929
366
229
2
+ Addedlodash@^3.10.1
+ Addedlodash@3.10.1(transitive)
Updatedjs-beautify@^1.5.10