0.0.2 • Published 5 years ago

remove-attr-loader v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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)