Skip to content

michaelworm/plugin-node-patternlab-inline-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Inline Assets Plugin for Pattern Lab Node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published