Onepage Rev在生产之前克隆文件名中带有MD5哈希的文件。 npm i --save-dev onepage-rev演示rev = require ' onepage-rev ' rev . config # required, use RegExp to find recources in HTML htmlScaner : ( text ) -> collection = [] match = text . match / ( [- w ./ ] + ) . (css | js)(?=") / g collection . push match ... if match ? collection # required, use RegExp to find recources in CSS cssScan