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

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

運行 grunt copy 報錯 Task "copy" not found.

'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,

//定義Task

copy:{

dist_html:{

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

dest:'<%=config.dis%>/index.html'

},

dist_js:{

src:'<%=config.app%>/js/index.js',

dest:'<%=config.dis%>/js/index.js'

}

},

? ? //另一種寫法

//copy:{

? ? // ?files:[

? ? // ? ?{

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

? ? // ? ? ?dest:'<%=config.dis%>/index.html'

? ? // ? ?},

? ? // ? ?{

? ? // ? ? ?src:'<%=config.app%>/js/index.js',

? ? // ? ? ?dest:'<%=config.dis%>/js/index.js'

? ? // ? ?}

? ? // ?]

? ? //},

clean:{

dist:{

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

}

}

});

}


正在回答

2 回答

說得很清楚啊,/Applications/Xcode6-Beta2.app/Contents/Developer這個位置找不到,beta3你改成beta3的目錄就好了,不要告訴我你不知道哦怎么用3替換2. 1,,

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

因為你在dest中的路徑寫錯了,你把<%= config.dist %>寫成了<%= config.dis %>

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

舉報

0/150
提交
取消

運行 grunt copy 報錯 Task "copy" not found.

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

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

幫助反饋 APP下載

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

公眾號

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