Skip to content

Specify custom paths for the copy task #77

@alexweissman

Description

@alexweissman

For copy, we can relativize the destination directory by specifying a base directory. For example,

copy: [
    {
        src: 'vendor/font-awesome-4.5.0/fonts/**/*',
        base: 'vendor/font-awesome-4.5.0/'
    }
]

will copy the files into myBaseDirectory/fonts/. However, what if I wanted to copy the files into myBaseDirectory/foo/ instead? I know I can set options.base in my gulpfile, but this is a global configuration parameter. In this case, we just want to specify the target directory for the fonts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions