diff --git a/index.js b/index.js index fcb2871..8ccd98c 100644 --- a/index.js +++ b/index.js @@ -149,11 +149,11 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, templateParams }); // Turn script files into script tags scripts = scripts.map(function(scriptPath) { - return ''; + return ''; }); // Turn css files into link tags styles = styles.map(function(stylePath) { - return ''; + return ''; }); // Append scripts to body element html = html.replace(/(<\/body>)/i, function (match) { @@ -170,7 +170,7 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, templateParams if (match.test(/\smanifest\s*=/)) { return match; } - return start + ' manifest="' + assets.manifest + '?' + templateParams.hash + '"' + end; + return start + ' manifest="' + assets.manifest + templateParams.htmlWebpackPlugin.querystring + '"' + end; }); } return html; diff --git a/spec/HtmlWebpackPluginSpec.js b/spec/HtmlWebpackPluginSpec.js index 81479ef..8798258 100644 --- a/spec/HtmlWebpackPluginSpec.js +++ b/spec/HtmlWebpackPluginSpec.js @@ -99,7 +99,7 @@ describe('HtmlWebpackPlugin', function() { inject: true, template: path.join(__dirname, 'fixtures/plain.html') })] - }, ['