gruntjs / grunt-contrib-compass

Compile Compass to CSS.
http://gruntjs.com/
MIT License
626 stars 128 forks source link

Nothing to compile. If you're trying to start a new project, you have left off the directory argument #164

Closed kirangsa closed 10 years ago

kirangsa commented 10 years ago

Hello,

I am facing some problem. I am new to grunt and compass. i tried to compail my scss files its not working its showing the following error.

Nothing to compile. If you're trying to start a new project, you have left off the directory argument. Run "compass -h" to get help.

My Grunt.js is module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: {

build: { src: 'js/libs/*.js', dest: 'js/buld/global.min.js' } }, compass: { dist: { options: { basePath:'Style', config: 'config.rb', sassDir: 'Style/scss', cssDir: 'Style/css' } } }

});

// Load the plugin that provides the "uglify" task. grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-compass');

// Default task(s). grunt.registerTask('default', ['uglify','compass']); };

and My config.rb is like this project_path = 'Style' css_dir = "Style/css" sass_dir = "Style/scss"

output_style = :compressed environment = :development relative_assets = true

Please help me on this issiue ?

sindresorhus commented 10 years ago

=> StackOverflow

cibulka commented 10 years ago

Hello Sindre, does this mean that the Kirangsa's question has been answered at Stack Overflow? I haven't found it neither by regular search, nor by sniffing around in your SO answers.

My Grunt outputs the same error. I opened the issue here and asked the question at Stack Overflow.

Can you shed a little light? Thanks!