1.0.1 • Published 5 years ago
@tuia/html-webpack-script-attributes-plugin v1.0.1
基于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'
})
]
}
1.0.1
5 years ago