@warhol/config-dom

0.1.0 • Public • Published

Config DOM reader

This module reads project configuration for a snapshot run from the DOM using special elements and attributes.

Breakpoints can be configured via a meta element:

<meta data-name="breakpoints" content="1280, 1024, 800, 480, 320" />

Components are identified by their warhol-target-selector=".selector" attribute, which maps individual component instances to a canonical selector by which they can be identified and checked in the wild.

License

This project is licensed under MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i @warhol/config-dom

Weekly Downloads

1

Version

0.1.0

License

none

Unpacked Size

155 kB

Total Files

15

Last publish

Collaborators

  • sirpepe
  • drublic