Gruntjs “咕噜在跑”;手表;任务和等待。。。永远。这是我的GrunFile.js语法吗?

Gruntjs “咕噜在跑”;手表;任务和等待。。。永远。这是我的GrunFile.js语法吗?,gruntjs,grunt-contrib-watch,bootstrap-sass,gruntfile,Gruntjs,Grunt Contrib Watch,Bootstrap Sass,Gruntfile,为了期待Sassier Bootstrap 4,我(尝试)在Bootstrap 3.3.5和文件上从Less切换到Sass。我编译更少的代码没有问题,但无法让Grunt使用Sass,具体地说,$Grunt和$Grunt watch都让我受益匪浅 运行“监视”任务 正在等待… 永远 不用说,它不会编译。我尝试了$grunt watch--verbose,得到了很多绿色OKs 我想我的gruntfile.js中有一些错误或效率低下,但由于这是Baby的第一个gruntfile.js,我就被困在这里了

为了期待Sassier Bootstrap 4,我(尝试)在Bootstrap 3.3.5和文件上从Less切换到Sass。我编译更少的代码没有问题,但无法让Grunt使用Sass,具体地说,
$Grunt
$Grunt watch
都让我受益匪浅

运行“监视”任务
正在等待…

永远

不用说,它不会编译。我尝试了
$grunt watch--verbose
,得到了很多绿色
OK
s

我想我的
gruntfile.js
中有一些错误或效率低下,但由于这是Baby的第一个gruntfile.js,我就被困在这里了。你能看到是什么引起的吗

    /*** Created by morgan on 9/13/15. */    

    module.exports = function (grunt) {
          grunt.initConfig({
            pkg: grunt.file.readJSON('package.json'),

        sass: {
          dev: {
        options: {
          includePaths: ['static/sass']
        },
        dev: {
          options: {
            style: 'expanded',
            compass: false
          },
          files: {
            'css/styles.css': 'sass/styles.scss'
          }
        }
      }
    },

    watch: {
      grunt: { files: ['Gruntfile.js'] },
      sass: {
        files: [
          'sass/**/*.scss'
        ],
        tasks: ['sass:dev']
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-sass');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.registerTask('default', 'watch')
};
我的项目目录,如果有帮助:

(Django project)
app
├── static
│   ├── sass
│   │   ├── _bootstrap.scss
│   │   └── styles.scss
│   ├── css
│   │   └── styles.css
│   └── jquery
├── node_modules
│   ├── grunt
│   ├── grunt-contrib-sass
│   └── grunt-contrib-watch
├── Gruntfile.js
└── package.json
在中提供了可执行的Gruntfile.js和package.json。在这里:

注意:如果您将此模板用于自己的sass引导项目,则可能需要更改
文件:
路径以匹配您自己的路径

Grunfile.js

module.exports = function (grunt) {
  grunt.initConfig({
    sass: {
      dev: {
        options: {
          outputStyle: 'expanded'
        },
        files: {
          'static/css/styles.css': 'static/sass/styles.scss'
        }
      }
    },

    watch: {
      sass: {
        files: [
          'static/sass/**/*.scss'
        ],
        tasks: ['sass:dev']
      }
    }
  });

  grunt.loadNpmTasks('grunt-sass');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.registerTask('default', 'watch')
};
package.json依赖项:

  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-sass": "^1.0.0"
  }
再一次,都来自@maxbeatty。(目录未更改)。
watch
故障排除将存档在Slack通道中以供进一步阅读