2016-08-21 76 views
0

我想用grunt配置我的项目。当试图运行一个简单的concat任务时,我得到了错误。无法运行grunt获取错误默认任务未找到

enter image description here

这里是我的grunfile.js代码。

module.export = function(grunt) { 
grunt.initConfig({ 
    pkg: grunt.file.readJSON('package.json'), 
    concat: { 
     options: { 
      separator: '\n', 
     }, 
     dist: { 
      src: ['src/*.js'], 
      dest: 'build/techsprint.js' 
     } 
    } 

}); 
grunt.loadNpmTasks('grunt-contrib-concat'); 
grunt.registerTask('default', ['concat']); 

}; 

我的呼噜声的版本是咕噜-CLI v0.1.13 咕噜V1.0.1

回答

0

它看起来像一个简单的拼写错误:module.export应该module.exports

+0

Thankyou ...帮助我 –

相关问题