I am new and learn how to set up coffee, jade and sass compilation tasks. I could successfully configure compilation tasks for the coffee and jade catalog, but I could not do this. The structure of my project is below.
. βββ Gruntfile.coffee βββ node_modules βββ package.json βββ sass β βββ index.sass βββ www
and my .json package
{ "name": "grunt-sass-test", "version": "0.1.0", "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-sass": "~0.5.0" } }
when Gruntfile.coffee is lower, $ grunt sass compile index.css is successful:
module.exports = (grunt) -> grunt.initConfig pkg: grunt.file.readJSON('package.json') sass: compile: files:[ "www/index.css": "sass/index.sass" ]
but if below, β The source file "index.sass" was not found. error displayed
sass: compile: cwd: 'sass' src: ['**/*.sass'] dest: 'www/' ext: '.css'
How can I set up a recursive sass compilation task?
Mekajiki
source share