Created
May 12, 2017 20:18
-
-
Save MQuy/5f4e3260839bf138c39d749fcebf6bd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compilation.plugin('html-webpack-plugin-alter-asset-tags', (htmlPluginData, cb) => { | |
... | |
htmlPluginData.body = inlineTags.concat([{ | |
tagName: 'script', | |
closeTag: true, | |
attributes: { | |
type: 'text/javascript' | |
}, | |
innerHTML: template | |
}]); | |
... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment