module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
files: [
{expand: true,cwd:"js/" ,src: ['libs/*'], dest: '../test/js/libs/'},
{expand: true,cwd:"js/" , src: ['models/*'], dest: '../test/js/models/'}
]
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask("testcopy",["copy"] );
);
我正在学习 grunt 并且在复制时遇到以下问题。
Warning: undefined is not a function Use --force to continue.
并且文件未从 src 复制到目标