为了账号安全,请及时绑定邮箱和手机立即绑定

Loading "Gruntfile.js" tasks...ERROR 总是出现这个问题,找不到原因,求助

Loading "Gruntfile.js" tasks...ERROR 总是出现这个问题,找不到原因,求助

慕丝0395080 2017-07-26 18:05:35
i'm getting the following error when trying to run grunt;I was wondering if anyone might be able to help me correct this?Here's my Gruntfile:module.exports = function(grunt) {     grunt.initConfig({      pkg:grunt.file.readJSON('package.json'),      //uglify      uglify:{          options: {                 stripBanners:true,                 banner: '/*! <%= pkg.name %>-<%=pkg.version%>.js <%= grunt.template.today("yyyy-mm-dd") %> */\n'             },             build: {               src: 'src/test.js',               dest: 'build/<%= pkg.name %>-<%=pkg.version%>.min.js'             }      },       //jshint       jshint:{         build: [ 'Gruntfile.js', 'src/*.js'],            options: {           jshintrc: '.jshintrc'         }       },       //cssmin       cssmin:{         build:[ 'src/*.css'],         options:{           csslintrc: '.csslintrc'         }       }       //watch       watch: {         build: {           files: ['src/*.js', 'src/*.css'],           tasks: ['jshint', 'uglify'],           options: { spawn: false}         }       }     });     grunt.loadNpmTasks('grunt-contrib-uglify');     grunt.loadNpmTasks('grunt-contrib-jshint');     grunt.loadNpmTasks('grunt-contrib-cssmin');     grunt.loadNpmTasks('grunt-contrib-watch');     grunt.registerTask('default', ['jshint', 'cssmin', 'uglify', 'watch']); };
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 3907 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信