我正在使用 Yeoman
构建一个网络,并且我正在尝试创建以下结构:
app/index.html -> /
app/support/index.html -> /support
...etc
当我运行grunt来构建dist目录时,问题就出现了。 support 子目录中的文件不会得到处理。
如何实现这一目标?
最佳答案
这取决于您使用的生成器,但大多数情况下您需要更改 Gruntfile 中的
到 *.html
或 {,*/}*.html
行.js**/*.html
因此它也会在子目录中查找。
关于javascript - yeoman/咕噜声 : adding subdirectories to project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20563580/