@resource-sentry/reader-svg
Resource Sentry SVG Reader.
Last updated 10 months ago by nicolassiver .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @resource-sentry/reader-svg 
SYNC missed versions from official npm registry.

Reader: SVG

Recursively walks through file-system and builds optimized SVG snippets ready to be injected in HTML.

Version Dependencies

Installation

yarn add --dev @resource-sentry/reader-svg

Configuration

  • entry, path to a directory with SVG files.

Example

-- [images]
---- logo.svg
---- header.svg
---- [media]
------ play.svg
------ stop.svg

SVG files will be optimized and added into rs.js file ready for use in production code.

import Rs from './rs';

Rs.getResource(Rs.Graphic.LOGO); // Returns XML code for the "logo.svg" asset
Rs.getResource(Rs.Graphic.MEDIA_STOP); // Returns XML code for the "stop.svg" asset

Current Tags

  • 1.2.0                                ...           latest (10 months ago)

4 Versions

  • 1.2.0                                ...           10 months ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |