我有复制文件的下一个任务,这个测试任务和他将来会改变,但他没有运行
StatusId
注册任务:
pluginsCopy: {
dist: {
files: [{
expand: true,
dot: true,
cwd: '<%= yeoman.client %>',
dest: '<%= yeoman.dist %>/public',
src: [
'*.{ico,png,txt}',
'.htaccess',
'bower_components/**/*',
'assets/images/{,*/}*.{webp}',
'assets/js/{,*/}*.{webp}',
'assets/js/**/*',
'assets/fonts/**/*',
'index.html'
]
}, {
expand: true,
cwd: '.tmp/images',
dest: '<%= yeoman.dist %>/public/assets/images',
src: ['generated/*']
}, {
expand: true,
cwd: '.tmp/images',
dest: '<%= yeoman.dist %>/public/assets/images',
src: ['generated/*']
},
{
expand: true,
dest: '<%= yeoman.dist %>',
src: [
'package.json',
'server/**/*'
]
}]
},
styles: {
expand: true,
cwd: '<%= yeoman.client %>',
dest: '.tmp/',
src: ['{app,components}/**/*.css']
}
}
并运行: grunt pluginsCp
但我有下一个麻烦: jit-grunt:&#34; pluginsCopy&#34;的插件找不到任务。 如果您已经安装了插件,请设置静态映射。 见Static Mappings on GitHub。 为什么我的任务是grunt搜索插件?