0.1.0 • Published 6 years ago

@warhol/config-dom v0.1.0

Weekly downloads
1
License
-
Repository
-
Last release
6 years ago

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.