remove-attr-loader
v0.0.2
Published
Webpack loader. Removed specified HTML attributes
Downloads
1,485
Readme
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/
]
}
}
}
}
Licence
MIT (http://www.opensource.org/licenses/mit-license.php)