@tuia/html-webpack-script-attributes-plugin

1.0.1 • Public • Published

基于html-webpack-plugin的一个插件

可以给script标签添加attributes

Usage

const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackScriptAttributesPlugin = require('html-webpack-script-attributes-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new HtmlWebpackScriptAttributesPlugin({
      crossorigin: 'anonymous'
    })
  ]
}

/@tuia/html-webpack-script-attributes-plugin/

    Package Sidebar

    Install

    npm i @tuia/html-webpack-script-attributes-plugin

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.02 kB

    Total Files

    3

    Last publish

    Collaborators

    • any-u
    • dinglh
    • candy_dd
    • wintersun97
    • tump
    • inuanfeng
    • zhoucheng
    • zhangmin173
    • aiduck
    • chao.zhou
    • babalk
    • leitingting
    • nbseven
    • linhao-vue
    • liusandy