[Windows 8.1] Done, without errors but without output any file
Hi,
I followed the tutorial example and I tried others variations.
Console output: Running "svgstore:default" (svgstore) task Done, without errors.
Could anyone help me, please?
Sadly I don't have a solution at the moment, but I have the same problem. I don't think it is Windows 8.1 related, I also tested this on Windows 7 Professional with the same result.
I was having the same result until I put default:{}, around the files:{}, or your-target:{}, section. The command line then said "File _includes/dest-svg.svg created" before "Done without errors." It ended up looking like this: default:{ files: { '_includes/svg-dest.svg': ['_includes/baseSVGs/*.svg'], }, },
I too struggled but i Found this website:
https://css-tricks.com/svg-sprites-use-better-icon-fonts/
I guess the plugin is quite strict in setting your gruntfile.
See sample code below... This worked when i tested
module.exports = function(grunt) {
grunt.initConfig({
//This is the svgstore node
svgstore: {
options: {
prefix : 'shape-', // This will prefix each <g> ID
},
default : {
files: {
//'destination' : 'source or sourcelist'
'dest/svg-defs.svg': ['svgs/*.svg'],
}
}
},
});
//You need to load the plugin like this
grunt.loadNpmTasks('grunt-svgstore');
};