brunch
brunch copied to clipboard
Copy dotfiles from assets to public
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
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.
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?
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
+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!
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.