简体   繁体   English

Yeoman / Grunt:向项目添加子目录

[英]Yeoman / Grunt: adding subdirectories to project

I am building a web with Yeoman , and I'm trying to create the following structure: 我正在与Yeoman建立网络,并且正在尝试创建以下结构:

app/index.html -> /
app/support/index.html -> /support
...etc

The issue comes when I run grunt to build the dist directory. 当我运行grunt构建dist目录时,问题就来了。 The files in support subdirectory don't get processed. support子目录中的文件未得到处理。

How can this be achieved? 如何做到这一点?

这取决于您使用的生成器,但是大多数情况下,您需要将Gruntfile.js*.html{,*/}*.htmlGruntfile.js**/*.html以便它也可以在子目录中查找。

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

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