Fix unit tests for node 0.12
This commit is contained in:
parent
d22c23066a
commit
ecc0784af5
|
|
@ -755,7 +755,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 = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue