Addon for the html-webpack-plugin to customize the script attributes of script tag.
npm install html-webpack-script-attributes-pluginAddon for the html-webpack-plugin to customize script attributes of script meta.
``javascript
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'
})
]
}
``