Open paladio opened 2 years ago
I'm not quite sure what your configuration is.
You can refer to a simple example here: https://github.com/jaywcjlove/svgtofont/tree/master/test/example
@paladio
I'm not quite sure what your configuration is.
You can refer to a simple example here: https://github.com/jaywcjlove/svgtofont/tree/master/test/example
@paladio
Here it is suggested that the file should be generated automatically
" Automatically generate a preview site "
How to call the config file with npm scripts? I did not use any special configuration and only used the npm command line scripts
"svg-icon": "svgtofont --sources \"src/svg-raw\" --output \"src/svg-ico\"",
Where should the config file be placed? How can the config be called? Why is the html preview file not created? How to customize the output type and format? I wish this plugin had a better and more complete document with more examples!
{
"scripts": {
"font": "svgtofont --sources ./svg --output ./font --fontName uiw-font"
},
"svgtofont": {
"css": {
"fontSize": "12px"
}
}
}
You can add configuration to package.json. #48
Supports .svgtofontrc
Configuration File.
{
"fontName": "svgtofont",
"css": true
}
@paladio
@jaywcjlove
I tested this method but there are still problems !!
Why is the file HTML empty and there is no icon preview in it? To prevent the less/sass/styl production what should be done and what configuration should be done where? How to prevent the production of react components? How to prevent .json file generation? How can you determine which font formats to produce and which formats not to produce?
@jaywcjlove My problem is still not solved and the HTML file is empty and the preview of the icons is not displayed ??!!
You can submit it to a repository and I'll take a look at it for you. @paladio
I use this command to execute
"svg-icon": "svgtofont --sources \"src/svg-raw\" --output \"src/svg-ico\"",
But the preview file is not created in HTML format, only two html empty files are created in which nothing is displayed
What is the problem? why is the .html preview file not created? Why are the files .html empty?