【发布时间】:2014-01-20 03:55:48
【问题描述】:
当我尝试运行 grunt watch 时,我遇到了 GruntJS 错误。
它工作正常,直到文件发生变化
看,然后,它看起来像这样:
Running "watch" task
Waiting...[1] 2464 bus error grunt watch
2464 的数字发生了变化。似乎是 grunt 正在监视的端口?但是,我不确定。这是我的 Gruntfile:
module.exports = function (grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compact'
},
files: {
'css/style.css': 'sass/style.scss',
}
}
},
watch: {
files: 'sass/style.scss',
tasks: ['sass']
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['sass']);
};
提前感谢所有帮助!
【问题讨论】:
标签: command-line terminal sass gruntjs watch