Ninety Percent Muffin

    html-webpack-script-attributes-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.2 • Public • Published

    html-webpack-script-attributes-plugin

    Addon for the html-webpack-plugin to customize script attributes of script meta.

    Usage

    const HtmlWebpackPlugin = require('html-webpack-plugin')
    
    // JS
    const HtmlWebpackScriptAttributesPlugin = require('html-webpack-script-attributes-plugin').default
    
    // TS
    import HtmlWebpackScriptAttributesPlugin from 'html-webpack-script-attributes-plugin'
    
    module.exports = {
      plugins: [
        new HtmlWebpackPlugin(),
        new HtmlWebpackScriptAttributesPlugin({
          crossorigin: 'anonymous'
        })
      ]
    }

    Install

    npm i html-webpack-script-attributes-plugin

    DownloadsWeekly Downloads

    4

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    5.48 kB

    Total Files

    6

    Last publish

    Collaborators

    • zhoucheng