html-webpack-plugin-modify
Usage
Install
npm html-webpack-plugin-modify
Webpack Configuration
module.exports = {
// ...
plugins: [
new HtmlWebpackPlugin({
// ...
}),
new HtmlWebpackPluginModify({
// eg. if you want to remove <script type="module" scr="./index.ts"></script>
remove: /<script.*?type="module".*?<\/script>/
}),
]
}