Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with Webpack 5.9.0 (cli 4.2.0) #1

Closed
tornord opened this issue Dec 4, 2020 · 2 comments
Closed

Crash with Webpack 5.9.0 (cli 4.2.0) #1

tornord opened this issue Dec 4, 2020 · 2 comments

Comments

@tornord
Copy link

tornord commented Dec 4, 2020

The apply function crashes on line 18:
compilation.hooks.htmlWebpackPluginAlterAssetTags is undefined

@zhouchengi
Copy link
Owner

Upgraded in 2.0.2,refactored by typescript,you need to use like this

// JS
const HtmlWebpackScriptAttributesPlugin = require('html-webpack-script-attributes-plugin').default

// TS
import HtmlWebpackScriptAttributesPlugin from 'html-webpack-script-attributes-plugin'

@tornord
Copy link
Author

tornord commented Dec 9, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants