Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b9745233ab | ||
|
225e6dea60 | ||
|
5bc85cfee3 | ||
|
1374a3a65a |
@@ -24,7 +24,7 @@ svg-iconset --source=assets/images/icons --result=icons
|
||||
```
|
||||
Creates a file `icons-iconset.svg` in same folder
|
||||
### In Project
|
||||
```
|
||||
```javascript
|
||||
const SvgIconset = require('svg-iconset');
|
||||
|
||||
const config = {
|
||||
@@ -32,9 +32,13 @@ const config = {
|
||||
result: 'icons', // Required
|
||||
// This is optional for optimize files using SVGO plugins
|
||||
optimize: {
|
||||
removeViewBox: true, // Will remove attribute viewBox (default true)
|
||||
removeViewBox: true, // Will remove attribute viewBox (default false)
|
||||
}
|
||||
}
|
||||
|
||||
new SvgIconset(config).createSet();
|
||||
```
|
||||
|
||||
#### Additional
|
||||
[Default SVGO optimisation config](https://github.com/DariusNorv/svg-iconset/wiki#default-svgo-configuration)
|
||||
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vkl/svg-iconset-builder",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"name": "@vkl/svg-iconset-builder",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "create iconset from separated svg icons",
|
||||
"main": "./dist/app.js",
|
||||
"types": "./dist/app.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prepare": "npm run build",
|
||||
|
Reference in New Issue
Block a user