1.0.10 • Published 5 years ago

@toba/html-webpack-inline-svg v1.0.10

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

npm package Build Status Code style Dependencies DevDependencies Test Coverage

SVG Inliner for the Webpack HTML Plugin

Insert SVG files into index.html generated by the Webpack HTML plugin so they can be used within components.

Usage

yarn add @toba/html-webpack-inline-svg --dev

Within Component

import prettyID from './images/pretty.svg';

const header = props => (
   <svg viewBox="0 0 30 10">
      <use href={prettyID} x="10" />
   </svg>
);

Webpack Configuration

import { HtmlSvgPlugin } from '@toba/html-webpack-inline-svg';

export = {
   // ...
   plugins: [new HtmlWebpackPlugin(), new HtmlSvgPlugin()];
}

License

Copyright © 2019 Jason Abbott

This software is licensed under the MIT license. See the LICENSE file accompanying this software for terms of use.

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago