1.0.1 • Published 6 years ago

plugin-node-patternlab-inline-assets v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Inline Assets Plugin for Pattern Lab Node

npm npm Buy me a beer!

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.