fex-team / fis3-postpackager-loader

静态资源前端加载器
BSD 2-Clause "Simplified" License
82 stars 38 forks source link

可定制化输出目录规则 #63

Closed Aerojin closed 8 years ago

Aerojin commented 8 years ago

css, js 可接受函数, 回传file, 可定制化路径规则, 如:
postpackager: fis.plugin('loader', { allInOne: { js: function (file) { return "/static/js/" + file.filename + "_aio.js"; }, css: function (file) { return "/static/css/" + file.filename + "_aio.css"; } }
})

2betop commented 8 years ago

赞,太感谢了。