sass/style.scss
这是我的 gruntfile.js,它与和 位于同一目录中package.json
。package.json
有grunt
,grunt-contrib-sass
并grunt-cli
安装。
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// this is where you set up your Sass settings. Once you know what you're doing, you can change thse.
Sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'style.css': 'sass/style.scss'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.registerTask('default', ["Sass"]);
};
任何想法为什么我收到未找到任务的错误?