1
我已經安裝了npm和grunt,然後安裝了grunt-contrib-compass。 但是當我運行咕嚕聲。我有這個錯誤grunt-contrib-compass不能在npm中工作
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']);
}