0

我的 Grunt.js 中有以下设置:

module.exports = function(grunt) {

   grunt.initConfig({
      sass: {
            dist: {       // Target
                files: {    
                    'public/stylesheets/css/application.css' : 'public/stylesheets/scss/application.scss'    
                },
                options: {
                    outputStyle: 'nested',
                    sourceComments: 'normal',
                    includePaths: [
                        'public/stylesheets/scss/'
                    ]
               }
            }

        }
        ,
        watch: {
            sass: {
                files: ['public/stylesheets/scss/*.*'],
                tasks: ['sass:dist']
            },
            livereload: {
                files: ['public/stylesheets/css/*.*'],
                options: {
                    livereload: 1234
                }
            }
        } // Task

    });

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

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

};

我也在用波旁威士忌。任何编译错误都会出现在终端中,但不会像我期望的那样出现在浏览器中。有什么我可以添加到我的设置中以使编译错误输出到浏览器的吗?

提前致谢。

4

0 回答 0