跑完后grunt build我离开了fonts里面没有目录dist/styles.我究竟做错了什么?
这就是我所拥有的Gruntfile.js:
Run Code Online (Sandbox Code Playgroud)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 } } },
pas*_*ssy 15
该compass任务不负责将字体复制app到dist.这由copy任务处理,通常如下所示:
copy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.app %>',
dest: '<%= yeoman.dist %>',
src: [
'*.{ico,png,txt}',
'.htaccess',
'bower_components/**/*',
'images/{,*/}*.{gif,webp}',
'styles/fonts/*' // <-- Where fonts are copied.
]
}, {
expand: true,
cwd: '.tmp/images',
dest: '<%= yeoman.dist %>/images',
src: [
'generated/*'
]
}]
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4551 次 |
| 最近记录: |