brunch icon indicating copy to clipboard operation
brunch copied to clipboard

Copy dotfiles from assets to public

Open switz opened this issue 11 years ago • 5 comments

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

switz avatar Feb 05 '14 16:02 switz

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.

es128 avatar Feb 13 '14 21:02 es128

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?

switz avatar Feb 19 '14 19:02 switz

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

jakecraige avatar Jan 25 '17 17:01 jakecraige

+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!

markhealey avatar Feb 23 '17 23:02 markhealey

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.

shvaikalesh avatar Mar 26 '17 14:03 shvaikalesh