我剛開始使用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