Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Copy dotfiles from assets to public #796

Open
switz opened this issue Feb 5, 2014 · 5 comments
Open

Copy dotfiles from assets to public #796

switz opened this issue Feb 5, 2014 · 5 comments
Labels

Comments

@switz
Copy link

switz commented Feb 5, 2014

I apologize for posting in ost.io/chaplin, obviously it is related to brunch.

Is there any way to copy hidden files from assets to public other than .htaccess? It seems that has been hardcoded in, but there are plenty of other reasons to include hidden files in my output folder.

Thanks,
Daniel

brunch 1.7.13 (with chaplin/exoskeleton)
node v0.10.0
OS Mac 10.8.5

@es128
Copy link
Member

es128 commented Feb 13, 2014

There are also plenty of hidden files you (or most people) would not want copied. Can you describe your use-case in more detail - which additional files did you want copied?

See #646 for the most recent discussion on this topic - including why we've decided against making the special ignore condition for assets configurable so far.

@switz
Copy link
Author

switz commented Feb 19, 2014

I'm building an app that needs to have custom hidden files for the device we're targeting. Can we just expose a list of custom files in brunch-config to copy over?

@jakecraige
Copy link

I'm running into this today in a Phoenix app I'm building. It defaults to having you put assets in a web/assets folder and uses brunch to copy them over.

I need to have a .well-known directory that has some files in it that I want brunch to copy over so they are served by my app.

It seems like that's currently not possible due to the hardcoding of all dotfiles being excluded with (it seems?) no way to override that

@markhealey
Copy link

+1 on @jakecraige's comment above for the Phoenix issue.

We're also trying to add an Apple Pay domain verification file to our app and Brunch won't copy the .well-known/ directory nor its contents by default. A special config would do the trick because I can definitely see the issue copying all dotfiles by default.

See the Stripe docs.

Thanks!

@shvaikalesh
Copy link
Contributor

shvaikalesh commented Mar 26, 2017

Hey @markhealey @jakecraige, thanks for reporting.

We will expose chokidar's ignored as config.watcher.ignored in 3.0 release and make .well-known not ignored by default. Progress in #1664.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

6 participants