grunt-svgstore icon indicating copy to clipboard operation
grunt-svgstore copied to clipboard

[Windows 8.1] Done, without errors but without output any file

Open yuricamara opened this issue 11 years ago • 3 comments

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?

yuricamara avatar Mar 01 '15 22:03 yuricamara

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.

e-phoenix avatar May 27 '15 16:05 e-phoenix

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'], }, },

davidfstewart avatar Aug 11 '15 14:08 davidfstewart

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');

};

shogunfighter avatar Dec 22 '16 05:12 shogunfighter