0.2.1 • Published 2 years ago

script-append-cross-origin-webpack-plugin v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  • support user select scripts by src