plugin-node-patternlab-inline-assets

1.0.1 • Public • Published

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.

/plugin-node-patternlab-inline-assets/

    Package Sidebar

    Install

    npm i plugin-node-patternlab-inline-assets

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.15 kB

    Total Files

    4

    Last publish

    Collaborators

    • miw0