preact-cli-svg-loader

1.1.0 • Public • Published

preact-cli-svg-loader

Removes svg extension from file-loader, url-loader and raw-loader and use preact-svg-loader to load svg file as preact components

Getting Started

Install it via npm:

npm install preact-cli-svg-loader

yarn:

yarn add preact-cli-svg-loader --dev

And include in your project by creating a preact.config.js

const preactCliSvgLoader = require('preact-cli-svg-loader');
 
export default function (config, env, helpers) {
    preactCliSvgLoader(config, helpers);
}

Import your svg files as preact compoments

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i preact-cli-svg-loader

Weekly Downloads

176

Version

1.1.0

License

MIT

Unpacked Size

11.1 kB

Total Files

20

Last publish

Collaborators

  • pmcalmeida