【问题标题】:Compass watch with GruntGrunt 指南针手表
【发布时间】:2013-11-28 11:49:08
【问题描述】:

我想创建一个任务来查看我所有的 scss 文件。我使用了“grunt-contrib-watch”和“grunt-contrib-sass”,但它不起作用。

我的文件和我的目录:http://glui.me/?i=pz7vmwu9cfgbzt3/2013-11-28_at_12.46_2x.png/

我的错误:

MacBook-Pro-of-username:src username:src$ grunt
Running "cssmin:minify" (cssmin) task
File lib/stylesheets/bottom.min.css created.

Running "watch" task
Waiting...Bus error: 10

我的咕噜代码:

module.exports = function(grunt){

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),


        sass: {
            dist: {
                files: {
                    'lib/stylesheets/bottom.css' : 'lib/sass/bottom.scss'
                }
            }
        },

        watch: {
            css: {
                files: '**/*.scss',
                tasks: ['sass']
            }
        },

        cssmin: {
            minify: {
                files: [{
                    'lib/stylesheets/bottom.min.css': ['lib/stylesheets/bottom.css']
                }]
            }
        }

    });

    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-sass');

    grunt.registerTask('default', ['watch']);

}

【问题讨论】:

    标签: gruntjs grunt-contrib-watch


    【解决方案1】:

    node https://github.com/gruntjs/grunt-contrib-watch/issues/204

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多