Search code examples
javascriptbuildbuild-processbrunch

Should Brunch.io build tool copy hidden files?


I've started using Brunch:

http://brunch.io

to build my javascript based application. I'm using Backbone.js which needs a .htaccess file in place in order to handle routing with HTML5 pushState.

My question: is Brunch expected to copy so-called 'hidden' files like .htaccess? Because no matter what I try, I can't seem to get it to copy the .htaccess file as part of the build process.

I have the file in the app/assets/ folder, which as I understood it was supposed to be copied directly over into public/.


Solution

  • By default brunch won’t copy any files that start with . or #, so the answer is no, you’ll have to move it there manually.

    I’m looking on making this configurable in the next release tho.