简体   繁体   English

Brunch.io构建工具是否应该复制隐藏文件?

[英]Should Brunch.io build tool copy hidden files?

I've started using Brunch: 我已经开始使用早午餐:

http://brunch.io http://brunch.io

to build my javascript based application. 构建我基于JavaScript的应用程序。 I'm using Backbone.js which needs a .htaccess file in place in order to handle routing with HTML5 pushState. 我正在使用Backbone.js,它需要一个.htaccess文件,以便使用HTML5 pushState处理路由。

My question: is Brunch expected to copy so-called 'hidden' files like .htaccess? 我的问题:早午餐是否应复制.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. 因为无论我尝试什么,在构建过程中我似乎都无法将其复制.htaccess文件。

I have the file in the app/assets/ folder, which as I understood it was supposed to be copied directly over into public/. 我将文件保存在app / assets /文件夹中,据我了解,该文件应该直接复制到public /中。

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. 我正在寻找在下一个版本中使它可配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM