限制编译的SCSS文件数

时间:2014-12-09 09:12:11

标签: sass gruntjs compass

有一个包含4个SCSS文件的文件夹,我只想在正常情况下编译其中一个。其他是该SCSS文件的主题版本。

这是我指南针的咕噜声部分。有谁知道我怎么能做到这一点?

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
                }
            }
        },

1 个答案:

答案 0 :(得分:0)

使用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
            }
        }
    },
相关问题