@deskeen/web-builder-inline-svg

0.1.0 • Public • Published

Web Builder Module - Inline SVG files

This module allows the @deskeen/web-builder engine to inline SVG files.

It uses the svgo package under the hood to minify the files.

Install

npm install @deskeen/web-builder
npm install @deskeen/web-builder-inline-svg

Usage

And add the module to the list of modules:

const builder = require('@deskeen/web-builder')
const builder.build([
  source: [
    // List of files or directories that include inlineSVG tags
    // {{inlineSVG:file.svg}}
  ],
  modules: [
    [
      '@deskeen/web-builder-inline-svg',
      {
        assets: [
          // List of directories that include the images
        ],
        minify: true, // Optional
      }
    ]
  ]
])

Contact

You can reach me at {my_firstname}@{my_name}.fr

Licence

MIT Licence - Copyright (c) Morgan Schmiedt

Package Sidebar

Install

npm i @deskeen/web-builder-inline-svg

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.47 kB

Total Files

5

Last publish

Collaborators

  • deskeen