English | 简体中文
- Zero-config, easy to use
- Support webpack v2/3/4/5,support the latest webpack5
- Support html-webpack-plugin v2/3/4/5
yarn add -D crossorigin-webpack-plugin # OR npm i -D crossorigin-webpack-plugin
Please put it after
HtmlWebpackPlugin
const CrossoriginWebpackPlugin = require('crossorigin-webpack-plugin')
const webpackConfig = {
/* ... */
plugins: [
new HtmlWebpackPlugin(),
new CrossoriginWebpackPlugin(),
],
/* ... */
}
Default config:
{ crossorigin: 'anonymous' }
new CrossoriginWebpackPlugin({ crossorigin: 'anonymous' })
😉😘 If it is helpful to you,please encourage me with a ⭐️Star ~
Copyright (c) 2018-present, komo