-
npm i
-
- jade模板编译:gulp 或 gulp revJade
- html编译:gulp revHTML
-
- jade
- html
- js
- css
- images
-
/**
-
@param string $filename
-
@return string */ function asset_path($filename) { $manifest_path = 'assets/rev-manifest.json';
if (file_exists($manifest_path)) { $manifest = json_decode(file_get_contents($manifest_path), TRUE); } else { $manifest = []; }
if (array_key_exists($filename, $manifest)) { return $manifest[$filename]; }
return $filename; }
-
shipotian / reviersion Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ian000/revision
静态资源管理,预编译