npm install -g tiny-asset-pipeline
require("../subDir/foo.js")to require foo.js.
require(for js) and
@import(for css and less) are using relative path, such as
@import ../plugin/foo.css. Images and fonts also use relative path.
-mappingFileoption to config the file path and name.
.will be ignorged(does not been processed), such as
tiny-asset-pipeline -start [-port 8888] [-root yourAssetsRoot]
tiny-asset-pipeline -from sourceDir -to destinationDir [-verbose or -v]. Finally it will generate a md5_mapping.json under the root of destination directoty, you can read the content to find the md5 hash of a special file.