ng-cache-loader
Advanced tools
Comparing version 0.0.5 to 0.0.6
13
index.js
/* | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Andrey Koperskiy @teux | ||
*/ | ||
MIT License http://www.opensource.org/licenses/mit-license.php | ||
Author Andrey Koperskiy @teux | ||
*/ | ||
var htmlMinifier = require("html-minifier"); | ||
@@ -41,3 +41,3 @@ var loaderUtils = require("loader-utils"); | ||
}); | ||
scripts = scriptParser.parse('root', source, { scripts: [] }).scripts; | ||
scripts = scriptParser.parse('root', source, {scripts: []}).scripts; | ||
source = Array.prototype.slice.apply(source); | ||
@@ -55,3 +55,4 @@ | ||
key: scr.id, | ||
val: resolveUrl(html) | ||
val: resolveUrl(html), | ||
i: result.length + 1 | ||
}); | ||
@@ -77,4 +78,4 @@ } else { | ||
}); | ||
result.push('module.exports=v'+result.length+';'); | ||
result.push('module.exports=v' + result.length + ';'); | ||
return result.join('\n'); | ||
}; |
{ | ||
"name": "ng-cache-loader", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Puts HTML partials in the Angular's $templateCache.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10968
196