我刚开始使用Grunt,而且我可能有问题。所以,这里是我的Gruntfile.js
是什么样子:未找到任务和子任务
module.exports = function (grunt) {
grunt.initConfig({
// Ability to access the package.json informations
pkg: grunt.file.readJSON('package.json'),
// SASS compilation
sass: {
dist: {
options: {
style: 'compressed'
},
expand: true,
cwd: './sass/',
src: 'main.scss',
dest: './css/',
ext: '.css'
},
dev: {
options: {
style: 'expanded',
debugInfo: true,
lineNumbers: true
},
expand: true,
cwd: './sass/',
src: 'main.scss',
dest: './css/',
ext: '.css'
}
}
});
};
当我运行grunt sass:dev
,它总是返回我Warning: Task "sass:dev" not found. Use --force to continue.
正如我开始有了它,我的文档看了看,可以” t找到我可能出错的地方......并且,依赖关系已正确安装。
[任务 “的concat” 在咕噜没有发现在Windows]的可能重复(http://stackoverflow.com/questions/15946224/task-concat-not-found-in-grunt-on-windows) – JJJ