Gruntjs 咕噜+;compass,目标文件夹中有无用的生成文件

Gruntjs 咕噜+;compass,目标文件夹中有无用的生成文件,gruntjs,compass-sass,Gruntjs,Compass Sass,grunfile.js 在我的Gruntfile.js中,我有以下用于监视任务的内容: watch: { css: { files: ['sass/**/*.scss'], tasks: ['compass'], options: { spawn: false, } }, /* More watched tasks bell

grunfile.js

在我的Gruntfile.js中,我有以下用于监视任务的内容:

watch: {

        css: {
            files: ['sass/**/*.scss'],
            tasks: ['compass'],
            options: {
                spawn: false,
            }
        },
      /* More watched tasks bellow */
    }

SASS

My sass文件夹有一个主文件和一个包含以下文件的文件夹:

/sass/main.scss
/sass/includes/file.scss

CSS

当手表自动生成目标文件夹中的所有内容时,我有:

/css/main.css /* it includes everything from the main.scss including all @imports */
/css/includes/file.css /* includes stylesheets from the imported file. But this is useless file and /include/ folder is also an extra, that I do not need. */
我想这是配置行中的一个问题:

files: ['sass/**/*.scss']

但我不知道如何描述,我只得到一个css文件夹和一个main.css文件,没有额外的文件夹和文件

您应该更改包含文件的名称:

/sass/includes/file.scss  -> /sass/includes/_file.scss
您可以在此处找到更多信息