Open debo07 opened 8 years ago
The problem is the check of the ruby gem compass if the files of buildA.options.specify and buildB.options.specify lie within the sassDir
. This check compares the absolute paths of the files with the sassPath (projectPath/sassDir
) and expects the sassPath to be the beginning of the file paths. The problem is that the sassPath is not properly constructed for sassDir containing dots.
This should help:
var path = require('path'); .. grunt.initConfig({ .. compass: { options: { sassDir: path.resolve('./src/assets'), ..
Thanks @alexander-nitsche this resolved this issue for me :)
I have multiple sass files inside my
assets
directory. I want to compile a different sass files for different target. I have usedspecify
option but still it's showing the error that - 'Individual stylesheets must be in the sass directory'. Below is my grunt task for compass.What I want to achieve is when I execute
grunt compass:buildA
, it should compile onlyappA.scss
file notappB.scss
. And similarly forgrunt compass:buildB
it should only compileappB.scss
. I hope you can figure out the directory structure.