-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI more options #48
Comments
@medeepaksaini The configuration is added to package.json. Like this: {
....
"svgtofont": {
"css": false,
"website": false
}
} Upgrade |
@jaywcjlove and what about if i want to get only |
Lines 197 to 204 in 3195dd6
@medeepaksaini I need to modify the copy-template-dir, which will take some time. |
Okay, Thanks 🙂👍 |
@medeepaksaini You can delete unnecessary files after generation. Can use rimraf, Support CLI. |
Okay |
@jaywcjlove how i can change css file location ? |
@medeepaksaini Can use move-file-cli |
@medeepaksaini Upgrade "svgtofont": {
"website": false,
"css": {
"output": "css",
"include": "\\.(css|less)$"
}
}, |
Hi @jaywcjlove, great plugin, very useful i have a few questions: for the css options, used like this: "svgtofont": {
"website": false,
"css": {
"output": "./src/scss/components/",
"include": "\\.(scss)$"
},
"emptyDist": true
},, is there any way to specify the path for the generated fonts? currently it is generated like this: @font-face {font-family: "icons";
src: url('icons.eot?t=1607280845895'); /* IE9*/
src: url('icons.eot?t=1607280845895#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("icons.woff2?t=1607280845895") format("woff2"),
url("icons.woff?t=1607280845895") format("woff"),
url('icons.ttf?t=1607280845895') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('icons.svg?t=1607280845895#icons') format('svg'); /* iOS 4.1- */
} but i would need to generate them with a specific path, something like this: @font-face {font-family: "icons";
src: url('../fonts/icons/icons.eot?t=1607280845895'); /* IE9*/
src: url('../fonts/icons/icons.eot?t=1607280845895#iefix') format('embedded-opentype'), /* IE6-IE8 */
url("../fonts/icons/icons.woff2?t=1607280845895") format("woff2"),
url("../fonts/icons/icons.woff?t=1607280845895") format("woff"),
url('../fonts/icons/icons.ttf?t=1607280845895') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
url('../fonts/icons/icons.svg?t=1607280845895#icons') format('svg'); /* iOS 4.1- */
} also, is there any way to specify the name of the output scss file? lets say i want to name it "_icons.scss" instead of "icons.scss" how is generated now. Thank you in advance. |
"svgtofont": {
"fontName": "icons",
"website": false,
"css": {
"output": "./src/scss/components/",
"cssPath": "../fonts/icons/",
"include": "\\.(scss)$"
},
"emptyDist": true
}, "svgtofont": {
+ "fontName": "icons",
"website": false,
"css": {
"output": "./src/scss/components/",
+ "cssPath": "../fonts/icons/",
"include": "\\.(scss)$"
},
"emptyDist": true
}, |
Hi @jaywcjlove , I was expecting to have something like: "svgtofont": {
"fontName": "icons",
"website": false,
"css": {
"output": "./src/scss/components/",
+ "cssName": "_icons",
"include": "\\.(scss)$"
},
"emptyDist": true
}, which will output the |
@claudiuTicu Upgrade "svgtofont": {
"website": false,
"css": {
"output": "./src/scss/components/",
+ "fileName": "_icons",
+ "cssPath": "../fonts/icons/",
"include": "\\.(scss)$"
},
"emptyDist": true
},
|
Perfect!!! Thank you very much! |
Supports {
"src": "./icon",
"dist": "./fonts",
"fontName": "svgtofont",
"css": true
} Upgrade |
Hey @jaywcjlove @btmurrell , can someone help me how i can modify npm cli command
svgtofont --sources build/icons/svg --output ./font --fontName icons
to get only font and less file not other files.The text was updated successfully, but these errors were encountered: