script-append-cross-origin-webpack-plugin

0.2.1 • Public • Published

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

Package Sidebar

Install

npm i script-append-cross-origin-webpack-plugin

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

5.07 kB

Total Files

8

Last publish

Collaborators

  • workkk