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

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

License

Notifications You must be signed in to change notification settings

pmcalmeida/preact-cli-svg-loader

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published