Skip to content

Instantly share code, notes, and snippets.

@jorgeatgu
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgeatgu/a0656c47a11e741befb2 to your computer and use it in GitHub Desktop.
Save jorgeatgu/a0656c47a11e741befb2 to your computer and use it in GitHub Desktop.
svgmin: {
options: {
plugins: [
{
removeViewBox: false
}, {
removeTitle: false
}, {
removeDesc: false
}, {
removeUselessStrokeAndFill: false
}, {
cleanupIDs: false
}, {
removeEditorsNSData: false
}, {
cleanupNumericValues: false
}, {
convertColors: false
}
]
},
dist: {
files: [{
expand: true,
cwd: 'images/', //La ruta donde se alojan nuestros archivos
src: ['**/*.svg'], //El * indica que optimize todos los archivos con extensión .svg
dest: 'dist/images', // La carpeta donde guardara nuestros archivos ya optimizados.
ext: '.svg'
}]
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment