2015-05-27 45 views
0

下午好,努力處理大會,但得到的錯誤:「不確定是不是一個函數」咕嚕少

「不確定是不是一個函數」

我的文件夾結構: - /更少 style.less - /組件 header.less -/CSS -/IMG -/JS

我裝:咕嚕-contrib請少 和我的文件:

module.exports = function(grunt) { 
grunt.initConfig({ 
    pkg: grunt.file.readJSON('package.json'), 
    less: { 
     development: { 
      options: { 
       paths: ["less"] 
      }, 
      files: { 
       "css/style.css": "less/style.less" 
      } 
     } 
    }, 
}); 

grunt.loadNpmTasks('grunt-contrib-less'); 
grunt.registerTasks('default',['less']); 
}; 

in style.less我寫道:@import「components/page-header.less」;

告訴我我的錯誤?

+0

在你的代碼的行引發的錯誤? – connexo

+0

當我運行grunt時,加載Gruntfile.js任務錯誤 – comSaaxov

+1

它不會告訴你在哪行代碼? – connexo

回答

0

最後行應該是(爲registerTask無拖尾s):

grunt.registerTask('default',['less']);

相關問題