You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... is no longer valid. To configure svgo a config file is needed.
By example, for others who struggle with. Here is what I have done to optimize my SVG for the WEB usage:
Set --config option in the grunt-image options ...
options: {svgo: ['--config','svg4web.svgo.js']},
.. and create a config file : svg4web.svgo.js
module.exports={plugins: [{name: 'preset-default',},// make diff friendly'sortAttrs',// Optimize SVG for WEB usage'convertStyleToAttrs','removeXMLNS'],};
The text was updated successfully, but these errors were encountered:
The svgo example in the readme ...
... is no longer valid. To configure svgo a config file is needed.
By example, for others who struggle with. Here is what I have done to optimize my SVG for the WEB usage:
Set
--config
option in the grunt-image options ..... and create a config file :
svg4web.svgo.js
The text was updated successfully, but these errors were encountered: