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

用了这个插件也加不上属性 不知道为啥 #11

Open
guozimo opened this issue Jan 17, 2024 · 1 comment
Open

用了这个插件也加不上属性 不知道为啥 #11

guozimo opened this issue Jan 17, 2024 · 1 comment

Comments

@guozimo
Copy link

guozimo commented Jan 17, 2024

get(webpackConfig, 'plugins', []).push(
// new ScriptExtHtmlWebpackPlugin({
// appendAttributes: {
// 'crossorigin': 'anonymous',
// },
// }),
new htmlWebpackInjectAttributesPlugin({
inject: "true",
async: true
})
)
ScriptExtHtmlWebpackPlugin 和htmlWebpackInjectAttributesPlugin 这两个插件都加不上属性 不知道什么原因

@dyw934854565
Copy link
Owner

get(webpackConfig, 'plugins', []).push( // new ScriptExtHtmlWebpackPlugin({ // appendAttributes: { // 'crossorigin': 'anonymous', // }, // }), new htmlWebpackInjectAttributesPlugin({ inject: "true", async: true }) ) ScriptExtHtmlWebpackPlugin 和htmlWebpackInjectAttributesPlugin 这两个插件都加不上属性 不知道什么原因

麻烦提供一下webpack和htmlwebpack的版本

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