0
在Gruntfile.js:指南針無法找到我的圖片創建精靈
compass: {
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
generatedImagesDir: '.tmp/images/generated',
imagesDir: '<%= yeoman.app %>/images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/styles/fonts',
importPath: '<%= yeoman.app %>/bower_components',
httpImagesPath: '../images',
httpGeneratedImagesPath: '../images/generated',
httpFontsPath: '/styles/fonts',
spriteLoadPath: '<%= yeoman.app %>/styles/sprites/',
relativeAssets: true,
assetCacheBuster: false
},
dist: {
options: {
generatedImagesDir: '<%= yeoman.dist %>/images/generated'
}
},
server: {
options: {
debugInfo: false
}
}
},
這是任務:
compass: {
files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server', 'autoprefixer']
},
當我跑我的呼嚕聲任務,出現此錯誤:
error app/styles/main.scss (Line 9: No files were found in the load path matching "app/styles/sprites/icons/*.png". Your current load paths are: app/styles/sprites/, /Volumes/myuser/Documents/Projects/mysite/app/images)
main.scss line 9:
@import "app/styles/sprites/icons/*.png";
爲什麼不指南針找到任何圖像?