script-append-cross-origin-webpack-plugin
v0.2.1
Published
work with HtmlWebpackPlugin, append crossorigin attribute to thoese script tag.
Downloads
2
Maintainers
Readme
script-append-cross-origin-webpack-plugin
Features
inject crossorigin attribute to script with src attribute
user can select script what you want by matcher
options
interface CrossOriginWebpackPluginOptions {
crossorigin?: string
matcher?: string | string[]
}
matcher
matcher regexp string, such as "https?://crossorigin.com"
TODO
[ ] 使用ast
[x] support user select scripts by src