Skip to content

zhouchengi/html-webpack-script-attributes-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published