Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

phantombuster/parcel-plugin-inlinesvg

 
 

Repository files navigation

Known Vulnerabilities Dependency Up-to-dateness Build Status

📦🚀parcel-plugin-inlinesvg

A parcel plugin that enables inline svg support

[demo](https://parcel-inlinsvg.now.sh/)

Installation

npm install parcel-plugin-inlinesvg -s
or
yarn add parcel-plugin-inlinesvg

Development/Contribution

Running the example

npm run example

Configuration

Create a .parcelrc in the roof of your project

.parcelrc

{
  "inlinesvg": {
    "exts": ["svg"],
    "plugins": [
      {
        "removeDoctype": true
      },
      {
        "removeComments": true
      },
      {
        "removeXMLNS": true
      }
    ]
  }
}

License

MIT License

About

Parcel plugin to support inline SVG

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.8%
  • HTML 7.2%