【发布时间】:2016-07-31 09:02:19
【问题描述】:
我已经安装了 npm 和 grunt,然后安装了 grunt-contrib-compass。 但是当我咕噜咕噜地跑的时候。我有这个错误
Running “compass:dist” (compass) task
Warning: not found: compass Use –force to continue.
Aborted due to warnings
这是我的 gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
dist: {
options: {
sassDir: 'sass',
cssDir: 'css'
}
}
},
watch: {
css: {
files: '**/*.scss',
tasks: ['compass']
}
}
});
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default',['watch']);
}
【问题讨论】:
标签: css sass npm gruntjs compass