remove-attr-loader
Webpack loader. Removed specified HTML attributes
Install
npm i -D remove-attr-loader
Usage
Add the loader in your webpack config. For example:
webpack.config.js
module.exports = {
module: {
rules: {
test: '/\.html$/',
loader: 'remove-attr-loader',
options: {
attributes: [
/ng-.+/,
/automation-id/
]
}
}
}
}