Socket
Socket
Sign inDemoInstall

@aofl/dom-scope-loader

Package Overview
Dependencies
2
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aofl/dom-scope-loader

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


Version published
Weekly downloads
8
Maintainers
2
Install size
276 kB
Created
Weekly downloads
 

Changelog

Source

v3.5.0 - 2020-02-25

[Added]

  • @aofl/wdio - Web Components support with Local and SauceLabs presets
  • @aofl/cli - source-map-loader
  • npmignore unnecessary files from the packages

[Changed]

  • @aofl/unit-testing-plugin - refactored to use WebdriverIO
  • unit testing config to work with new version
  • @aofl/cli - devtool source-map as default for development builds
  • @aofl/cli - updated workbox and pwa-manifest

[Deprecated]

[Removed]

  • lodash
  • mkdirp
  • webcomponents-tester

[Fixed]

  • Exclude babel built-ins from generated bundles
  • Source map files of generated bundles
  • @aofl/cli - eslint loader cache set to false
  • @aofl/templating-plugin - routes loader cache set to false. Build will pick up updated routes configs.
  • @aofl/cli - init - repo and branch name support

[Security]

  • Replaced WebComponentsTester with WebdriverIO
  • Updated npm packages
  • Changed .gitignore

Readme

Source

@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>

FAQs

Last updated on 03 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc