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"
}