Skip to content

CopyFiles does not copy files beginning with . (dot) #1208

@Thibibi

Description

@Thibibi

I tried to setup CopyFiles copy assets/.htaccess to my build directory, to no avail. Nothing works, except renaming it at the source (assets/my.htaccess) and renaming it with the "to" clause:

This works only if there is something before the dot (xxx.htaccess):

    .copyFiles({
        from: './assets',
        to: '.[ext]',
        pattern: /\.htaccess$/
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions