Compare commits
6 Commits
v1.0.0
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
3b3c62d539 | ||
|
dbf0994650 | ||
|
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
|
Creates a file `icons-iconset.svg` in same folder
|
||||||
### In Project
|
### In Project
|
||||||
```
|
```javascript
|
||||||
const SvgIconset = require('svg-iconset');
|
const SvgIconset = require('svg-iconset');
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
@@ -32,9 +32,13 @@ const config = {
|
|||||||
result: 'icons', // Required
|
result: 'icons', // Required
|
||||||
// This is optional for optimize files using SVGO plugins
|
// This is optional for optimize files using SVGO plugins
|
||||||
optimize: {
|
optimize: {
|
||||||
removeViewBox: true, // Will remove attribute viewBox (default true)
|
removeViewBox: true, // Will remove attribute viewBox
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
new SvgIconset(config).createSet();
|
new SvgIconset(config).createSet();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Additional
|
||||||
|
[Default SVGO optimisation config](https://github.com/DariusNorv/svg-iconset/wiki#default-svgo-configuration)
|
||||||
|
|
||||||
|
10
package-lock.json
generated
10
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@vkl/svg-iconset-builder",
|
"name": "@vkl/svg-iconset-builder",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chalk": {
|
"chalk": {
|
||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
|
||||||
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
@@ -496,9 +496,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"js-yaml": {
|
"js-yaml": {
|
||||||
"version": "3.12.0",
|
"version": "3.13.1",
|
||||||
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
|
||||||
"integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==",
|
"integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"argparse": "^1.0.7",
|
"argparse": "^1.0.7",
|
||||||
"esprima": "^4.0.0"
|
"esprima": "^4.0.0"
|
||||||
|
@@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "@vkl/svg-iconset-builder",
|
"name": "@vkl/svg-iconset-builder",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "create iconset from separated svg icons",
|
"description": "create iconset from separated svg icons",
|
||||||
"main": "./dist/app.js",
|
"main": "./dist/app.js",
|
||||||
|
"types": "./dist/app.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
|
Reference in New Issue
Block a user