【发布时间】:2013-08-17 15:49:05
【问题描述】:
运行grunt build 后,dist/styles 中没有fonts 目录。
我做错了什么?
这是我在Gruntfile.js 中的内容:
compass: { options: { sassDir: '<%= yeoman.app %>/styles', cssDir: '.tmp/styles', imagesDir: '<%= yeoman.app %>/../images', javascriptsDir: '<%= yeoman.app %>/scripts', fontsDir: '<%= yeoman.app %>/../styles/fonts', importPath: 'app/bower_components', relativeAssets: true, }, dist: { options: { imagesDir: '<%= yeoman.dist %>/images', fontsDir: '<%= yeoman.app %>/../styles/fonts' } }, server: { options: { debugInfo: true } } },
【问题讨论】:
-
不确定你的项目布局,但
dist下的fontsDir应该是yeoman.dist而不是yeoman.app? -
试过了,还是没有字体目录。 dist.options 实际上最初是空的。这只是我,正在尝试的东西。