-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: Task "compass" not found. Use --force to continue. #294
Comments
Is grunt-contrib-compass installed and loaded? |
Hey, Thanks for reply Yea, although I suspect I may need to do this: https://github.com/gruntjs/grunt-contrib-compass#watch - I'll look into it and report back if I'm still stuck Cheers, |
... if anyone has a sample Gruntfile.js file with the following setup they can gist I'd be grateful:
Cheers, |
@ldexterldesign, generator-webapp might be a good place to start. |
The The warning |
Thanks, I'm only compiling .scss files, yea I've run those commands and still get the error? Do you think I should look into https://github.com/sindresorhus/grunt-concurrent ? Cheers, |
Ahh, I think I finally understand the purpose of http://yeoman.io/ :P Cheers, |
The yeoman generator contains lots of fun things, most of which you don't need. Here is a simple example that uses grunt-contrib-watch to compile with compass: module.exports = function(grunt) {
grunt.initConfig({
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'css',
environment: 'production',
},
},
},
watch: {
css: {
files: ['sass/*.scss'],
tasks: ['compass'],
},
},
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.registerTask('default', ['compass']);
}; |
I had the same error, which I solved by installing the compass ruby gem: |
I also had the same problem on Windows. After installing compass, make sure your path includes the path to ruby. |
Your PATH environment variable needs to include the directory where Ruby was installed. |
I had the same issue on Windows and running |
try the solution Compass/compass#2129 (comment) |
Hey,
Is anyone able to help me fix this error? It's quite annoying as my terminal pops everytime I save out my code?
Yours hopefully,
The text was updated successfully, but these errors were encountered: