svg-sprite / grunt-svg-sprite

SVG sprites & stacks galore — Grunt plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'svg' of undefined

mhennessie opened this issue · comments

When using options shape an error occurs with the message: "Warning: An error occurred while processing a template (Cannot read property 'svg' of undefined). Use --force to continue."

Here is my config:
`svg_sprite: {
basic: {
cwd: '<%= project.src.svg %>/',
src: ['**/*.svg'],
dest: '<%= project.dist.svg %>/',
expand: true,

	options: {
		shape: {
			dimension: {
				maxWidth: 32,
				maxHeight: 32
			},
			spacing: {
				padding: 10
			},
			dest: '<%= project.dis.svg %>/intermediate'
		},
		mode: {
			symbol: true
		}
	}
},

},`

Nevermind found my typo