Fix unit tests for node 0.12

This commit is contained in:
Jan Nicklas 2017-01-04 08:40:48 +01:00
parent ecc0784af5
commit 2f4c88355c
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ describe('HtmlWebpackPlugin', function () {
apply: function (compiler) {
compiler.plugin('compilation', function (compilation) {
compilation.plugin('html-webpack-plugin-alter-asset-tags', function (pluginArgs, callback) {
pluginArgs.body = pluginArgs.body.map(tag => {
pluginArgs.body = pluginArgs.body.map(function (tag) {
if (tag.tagName === 'script') {
tag.attributes.async = false;
}