Makefile 压缩求助。。。!!!!
发布于 9 年前 作者 petitspois 3937 次浏览 最后一次编辑是 8 年前 来自 问答
assets/js/很多目录/*.js > (一一对应)  dest/js/很多目录/*.min.js

如何实现呢,小白求教。。

//这是压缩成一个
app_bundle := build/app.js
$(app_bundle): $(build_files) $(template_js)
    uglifyjs -cmo $@ $^
min: $(app_bundle)
2 回复

@petitspois 之前翻译过一篇 Makefile for Node.js package,用到的也是这种通配符规则

回到顶部