我的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"]);
};
我也在使用波旁威士忌。任何编译错误都会出现在终端中,但不会像我期望的那样出现在浏览器中。我可以添加到我的设置中以将编译错误输出到浏览器吗?
提前致谢。