简体   繁体   English

grunt-contrib-copy如何复制构建中的所有供应商字体

[英]grunt-contrib-copy how to copy all the vendor fonts in build

my tree is like 我的树就像

public/system/lib
       angular
       bootstrap
          fonts
       font-awesome
          fonts
       jquery

my goal is put all the fonts folders in my public/build/fonts 我的目标是将所有字体文件夹放在public / build / fonts中

so I've tried with: 所以我尝试了:

copy: {
            fonts: {
                cwd: 'public/system/lib/**/fonts/',
                src: '*',
                dest: 'public/build/fonts',
                expand: true
            }
        },

but it doesn't work. 但这不起作用。 Can you help me please ? 你能帮我吗 ?

尝试这样做:

cwd: ['public/system/lib/bootstrap/fonts/*', 'public/system/lib/font-awesome/fonts/*'],

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用grunt-contrib-copy递归地复制所有内容,而忽略了部分结构? - Copying everything recursively with grunt-contrib-copy, omitting part of the structure? 如何在grunt-contrib-copy文件重命名操作中删除原始文件? - How to delete original file during grunt-contrib-copy file renaming operation? Grunt - 您可以在自定义注册任务中调用grunt-contrib-copy并动态自定义副本吗? - Grunt - Can you call grunt-contrib-copy from within a custom registered task and customize the copy on the fly? 使用grunt-contrib-copy将文件夹结构从src /复制到dist / - Copy folder structure from src/ to dist/ using grunt-contrib-copy 使用EPERM操作的grunt-contrib-copy模具“ C:\\ Documents and Settings” - grunt-contrib-copy dies with EPERM operation not permitted “C:\Documents and Settings” 当我运行Grunt时,我收到以下消息:找不到本地npm模块“grunt-contrib-copy”。 它安装了吗? - When I run Grunt, I receive the following message: Local npm module “grunt-contrib-copy” not found. Is it installed? 笨拙的复制和惊人的字体 - Grunt copy and fontawesome fonts grunt复制将构建文件夹移动到项目外部 - grunt copy moving build folder outside of project 构建时的grunt警告(grunt-contrib-compass) - grunt warning on build (grunt-contrib-compass) 如何用grunt替换副本上的模板变量? - How do I replace template variables on copy with grunt?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM