我正在使用 gruntjs 和 usemin 任务。我将此添加到我的 html 文件中:
<!-- build:js scripts/all.js -->
<script src="../../core/module.js"></script>
<script src="../../core/base/alerts/alert-item.js"></script>
<script src="../../core/base/alerts/alerts-list.js"></script>
<script src="../../core/base/base_model.js"></script>
<script src="../../core/base/cursor.js"></script>
<script src="../../core/...<another script>...."></script>
<script src="../../core/...<another script>...."></script>
<script src="../../core/...<another script>...."></script>
<script src="../../core/...<another script>...."></script>
<!-- endbuild -->
如您所见,所有脚本都位于../../core
我如何告诉 usemin 先采取../../core/module.js
然后../../core/**/*
不提及每个文件?
这可能吗?