Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

olegmingaleev/remove-attr-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

remove-attr-loader - remove HTML attributes loader for Webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published