plugin-node-patternlab-inline-assets
v1.0.1
Published
Inline Assets Plugin for Pattern Lab Node
Downloads
8
Maintainers
Readme
Inline Assets Plugin for Pattern Lab Node
The Inline Assets Plugin for Pattern Lab Node can be used to inline assets into your templates.
Installation
Add the Inline Assets Plugin to your project using npm:
npm install --save plugin-node-patternlab-inline-assets
After that tell Pattern Lab to install the plugin:
gulp patternlab:installplugin --plugin=plugin-node-patternlab-inline-assets
Wich will install and enable the plugin. You're now ready to use it.
Usage
Use 3 curly brackets to tell handlebars to stop escaping, then call the inline plugin and pass a path to your asset.
{{{inline-asset 'source/icons/arrow-down.svg'}}}
Your asset will then be inlined into your template before compiling.
Thanks
The Inline Assets Plugin for Pattern Lab Node was created and is maintained by Michael Worm.