亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

Warning: Task "copy" not found. Use --force to continue

如題:

'use strict';

module.export = function(grunt){

? ? require('load-grunt-tasks')(grunt);


? ? require('time-grunt')(grunt);


? ? var config = {

? ? ? ? app:'app',

? ? ? ? dist:'dist'

? ? }

? ? grunt.initConfig({

? ? ? ? config:config,

? ? ? ? copy:{

? ? ? ? ? ? dist_html:{

? ? ? ? ? ? ? ? files:{

? ? ? ? ? ? ? ? ? ? '<%= config.dist %>/index.html':'<%= config.app %>/index.html',

? ? ? ? ? ? ? ? ? ? '<%= config.dist %>/js/index.js':['<%= config.app %>/js/index.js']

? ? ? ? ? ? ? ? }

? ? ? ? ? ? }

? ? ? ? },

? ? ? ? clean:{

? ? ? ? ? ? dist:{

? ? ? ? ? ? ? ? src:['<%= config.dist %>/index.html','<%= config.dist %>/js/index.js']

? ? ? ? ? ? }

? ? ? ? }

? ? })

}


"devDependencies": {

? ? "grunt": "^1.0.1",

? ? "grunt-contrib-clean": "^1.1.0",

? ? "grunt-contrib-copy": "^1.0.0",

? ? "load-grunt-tasks": "^3.5.2",

? ? "time-grunt": "^1.4.0"

? }

正在回答

1 回答

應該是module.exports=function(grunt){..},你沒有加s

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

Warning: Task "copy" not found. Use --force to continue

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號