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

Warning: Path must be a string. Received undefined Use

Open hagenbauer opened this issue 6 years ago • 2 comments

I may be blind but I cant see my error This is my gruntfile for webfonts

grunt.initConfig({
  webfont: { test1: {
				src: '_icons/*.svg',
				dest: 'fonts',
				options: {
					hashes: false
				}
}}});

This is my dir tree

├── assets
├── css
├── fonts
├── _icons
├── _includes
├── js
├── _layouts

But I always get this error and I cant see what path is wrong

Running "webfont:test1" (webfont) task
Verifying property webfont.test1 exists in config...OK
Files: _icons/glyphicons-196-circle-info.svg, _icons/glyphicons-517-menu-hamburger.svg, _icons/glyphicons-social-13-xing.svg, _icons/glyphicons-social-23-youtube.svg, _icons/glyphicons-social-32-twitter.svg, _icons/glyphicons-social-38-rss.svg, _icons/glyphicons-social-40-e-mail.svg -> fonts
Verifying property webfont.test1.src exists in config...OK
Verifying property webfont.test1.dest exists in config...OK
Options: hashes=false
Warning: Path must be a string. Received undefined Use --force to continue.

Aborted due to warnings.

hagenbauer avatar Apr 01 '18 09:04 hagenbauer

Did you try running grunt in --verbose mode?

alampros avatar Apr 04 '18 14:04 alampros

yes. this is --verbose

hagenbauer avatar Apr 04 '18 17:04 hagenbauer