@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'
        })
      ]
    }

    Keywords

    none

    Install

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

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    2.02 kB

    Total Files

    3

    Last publish

    Collaborators

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