drolsen / webpack-svg-spritely Goto Github PK
View Code? Open in Web Editor NEWWebpack plugin that bundles SVG files into a SVG sprite.
License: MIT License
Webpack plugin that bundles SVG files into a SVG sprite.
License: MIT License
SVG files that have a numerical naming convention do not get processed into the sprite.
This is limiting for large icon sets that absolutely need numbers for organization purposes.
If i set prefix to '':
new WebpackSVGSpritely({
output: '/images',
prefix:''
})
i have result as:
symbol id="-left",
symbol id="-gear", etc
How can i set id as source filename without '-'?
Thanks.
With Webpack builds that have multiple entry files each importing different groups of icons, it makes sense to create distinct icon sprite sheets for each entry unless told otherwise. A combine
option would allow developers to explicitly state they want a build's multiple entry files to reduce down to a single icon sheet or not.
...
combine: true|false, // (false by default)
...
Currently, the plugin will process all SVG files as icons and add them to the sprite, and while this might be the desired behavior for some projects it would be nice to have have a filter option to keep out unwanted larger SVG files from our sprites and keep these for background loading or full DOM.
...
filter: RegEx|Function // (if function, must return true or false)
...
Please have this tool generate a file (JSON) that could be used in a CMS as a datasource for a dialog dropdown or icon picker to allow an author to select an icon.
With the introduction of the new manifest JSON file generation, a bug has been discovered that the SVG source prop is actually the source from post-processed svgs not raw source svgs. This wont work for the majority of manifest JSON file use cases that want to have access to SVGs devoid of any client side assets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.