我有一个咕噜的配置,目前有手表和指南针模块配置。但是,当我更新任何scss文件时,我收到的消息是:
运行“指南针:dist”(指南针)任务
从那一刻起什么也没发生。文件将不会被编译。看起来建造得很慢。我等了10分钟,什么也没发生。没有错误。
如果与/home/mypath/node_modules/grunt-contrib-compass/tasks/compass.js一起运行的话,将得到:运行“罗盘”任务D任务的
运行“罗盘:dist”(罗盘)任务D任务源: /home/mypath/node_modules/grunt-contrib-compass/tasks/compass.js验证属性compass.dist存在于config...OK文件中:无文件选项: force、trace、sassDir=“资产/样式表”、cssDir=“././path/path/build”
如果我运行"grunt watch“并更新我将得到的任何样式: File”assets/样式表/style.scss“已更改。但在那之后,将有无休止的运行“罗盘:指南针”(罗盘)的任务。
Gruntfile.js代码:
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
themeDir: "../../[path/to/build]",
assetsDir: "assets",
scriptsDir: "<%= assetsDir %>/javascripts",
stylesDir: "<%= assetsDir %>/stylesheets",
watch: {
options: {
livereload: false
},
compass: {
files: ['<%= stylesDir %>/**/*.{scss,sass}'],
tasks: ['compass']
}
},
// compass and scss
compass: {
dist: { // Target
options: {
force: true,
trace: true,
sassDir: '<%= stylesDir %>',
cssDir: '<%= themeDir %>'
}
}
}
});更新使用的版本是:Ruby1.9.3罗盘1.0.1节点0.10.33 grunt 0.4.5
发布于 2014-12-24 01:50:50
问题是因为红宝石版本。在更新到版本2之后,现在一切都正常了。
https://stackoverflow.com/questions/26969464
复制相似问题