parcel-plugin-inject-svg

1.0.0 • Public • Published

This parcel plugin will check all img tags with an external svg and replace the tag with inline svg. It uses the PostHTML feature of parcel

【What is Parcel】 【What is Parcel PostHTML】

Installation

add a .posthtmlrc to you root project, it will automatically trigger the plugin when the htmlBundler of parcel is called

{
  "plugins": {
    "posthtml-svg-inline": {
      "root": "src/templates"
    }
  }
}

To add the plugin to your existing project, run the below command.

npm i parcel-plugin-inject-svg -D

or

yarn add parcel-plugin-inject-svg -D

License

This project is licensed under the MIT License - see the LICENSE file for details

Readme

Keywords

Package Sidebar

Install

npm i parcel-plugin-inject-svg

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

62.5 kB

Total Files

6

Last publish

Collaborators

  • quentindanneville