I have the following directory structure (only showing the corresponding bits for illustration):
proj \
\ Gruntfile.js
\ package.json
\ test \ (all my tests are in this folder structure)
\ app \
\ index.html
\ scripts \ (all my scripts are in here)
\ views \ (all views are in here)
\ styles \
\ style.css
\ oldie.css
\ print.css
\ images \
\ hires \ (all high resolution images are here)
\ lowres \ (all low resolution images are here)
The compass of my Gruntfile.js file is as follows:
compass: {
options: {
require: "susy",
sassDir: '<%= my.app %>/styles',
cssDir: '.tmp/styles',
imagesDir: '<%= my.app %>/images',
javascriptsDir: '<%= my.app %>/scripts',
fontsDir: '<%= my.app %>/styles/fonts',
importPath: 'app/components',
relativeAssets: true
},
dist: {},
server: {
options: {
debugInfo: true
}
}
}
<%= my.app %>allowed app. My problem is that I cannot specify that the images in the generated CSS files should have paths starting with images/, and not app/imageshow they currently do.
If I change imagesDir: '<%= my.app %>/images'to imagesDir: 'images'(or add the latter as a value for the parameter imagesPath), I get the following error when the compass tries to compile:
, "lowres/sprites/*. png". : /Users/joachimdyndale/ /MyProject/myapp_joachim//
config: 'compass.rb' compass.rb :
http_images_path = '../images'
http_generated_images_path = '../images'
.
, : - , , , CSS, , app ? , , . .
grunt-contrib-compass grunt.