1

Is there a way you can use grunts grunt-usemin with .hbs files. I only know how to use it for html files. But it would be ideal if it works for hbs files.

If any on you know of a solution, please let me know. I will be more than greatful!

Thanks in advance.

4

1 回答 1

0

我实际上是通过设置一个 layout.src.hbs 文件并让 grunt 根据环境为开发或生产生成一个 layout.hbs 文件来解决这个问题的。所以它会在生产中缩小和丑化,但在开发中不会。

于 2016-04-28T22:31:18.470 回答