@aofl/dom-scope-loader

3.5.0 • Public • Published

@aofl/dom-scope-loader

The @aofl/dom-scope-loader is a webpack loader that generates unique id's for specified html tags.

Installation

npm i -D @aofl/dom-scope-loader

Usage

module: {
  rules: [
    {
      test: /\.html$/,
      use: [
        {
          loader: '@aofl/dom-scope-loader',
          options: {
            cache: true,
            tags: [
              'A',
              'SPAN'
            ]
          }
        }
      ]
    }
  ]
}

It turns the following <a href="#">My Awesome Link</a> into <a dom-scope="UA\123" href="#">My Awesome Link</a>

Readme

Keywords

none

Package Sidebar

Install

npm i @aofl/dom-scope-loader

Weekly Downloads

11

Version

3.5.0

License

MIT

Unpacked Size

2.71 kB

Total Files

4

Last publish

Collaborators

  • alexdinari