Search code examples
sassgruntjscompass

limit number of SCSS files compiled


have a folder with 4 SCSS files, I only want to compile one of them on a normal basis. THe others are themed versions of that SCSS file.

Here is the grunt part for my compass. Does anyone know how I can achieve this ?

compass: {
            build: {
                options: {
                    sassDir: 'app/scss',
                    cssDir: 'build/css',
                    imagesDir: 'app/images',
                    outputStyle: 'compressed',  //expanded or nested or compact or compressed
                    httpStylesheetsPath: '/',
                    raw: 'Sass::Script::Number.precision = 16\n',
                    noLineComments: true,
                    relativeAssets: true
                }
            }
        },

Solution

  • Use specify.

    compass: {
            build: {
                options: {
                    sassDir: 'app/scss',
                    cssDir: 'build/css',
                    specify: 'build/css/file.scss'
                    imagesDir: 'app/images',
                    outputStyle: 'compressed',  //expanded or nested or compact or compressed
                    httpStylesheetsPath: '/',
                    raw: 'Sass::Script::Number.precision = 16\n',
                    noLineComments: true,
                    relativeAssets: true
                }
            }
        },