Webpack loader. Removed specified HTML attributes
npm i -D remove-attr-loaderAdd 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/
]
}
}
}
}