1.1.0 • Published 6 years ago

html-webpack-script-attributes-plugin-xiaoman v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

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