Last active
August 29, 2015 14:09
-
-
Save jorgeatgu/a0656c47a11e741befb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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