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

增加 link 标签的 crossorigin tag #19

Open
baifengbxl opened this issue Mar 14, 2023 · 1 comment
Open

增加 link 标签的 crossorigin tag #19

baifengbxl opened this issue Mar 14, 2023 · 1 comment

Comments

@baifengbxl
Copy link

  1. 有些 link 标签也会链选一些外部的资源,所以也需要设置跨域标签,可以在src 中增加下述代码
    htmlPluginData.assetTags.styles.forEach(item => (item.attributes.crossorigin = this.options.crossorigin))`
@clevergod
Copy link

  1. 有些 link 标签也会链选一些外部的资源,所以也需要设置跨域标签,可以在src 中增加下述代码
    htmlPluginData.assetTags.styles.forEach(item => (item.attributes.crossorigin = this.options.crossorigin))`

请问具体的配置方法

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