[sudo] npm install -g tiny-asset-pipeline
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.
*.jsx.jsfile to normal(vanilla) js, and then do the file-merging and file-compression and md5 hash version work...
.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.