简体   繁体   English

如何配置Brunch.io将index.js文件从app /复制到public /

[英]How do I configure Brunch.io to copy the index.js file from app/ to public/

Brunch is currently building my app and combining the css/js from the app and /app/assets folder but it doesn't copy the index.js file from the root of the app folder. Brunch目前正在构建我的应用程序并组合app和/ app / assets文件夹中的css / js,但它不会从app文件夹的根目录复制index.js文件。 This is the index file which should become index.html inside the public folder. 这是索引文件,它应该成为公用文件夹中的index.html。

I cannot work out how to config Brunch to do this. 我无法弄清楚如何配置早午餐来做到这一点。 Any ideas? 有任何想法吗?

Current Config: http://jsbin.com/lakapaxalamo/1 当前配置: http//jsbin.com/lakapaxalamo/1

Folder Structure: 文件夹结构: 在此输入图像描述

您的index.html应该在app/assets

您可以使用此插件,这也将优化您的HTML输出: https//www.npmjs.com/package/html-pages-brunch

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

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