1, first on their own computer to install node. JS and NPM package management tools;
2. Download the Zepto.js source package from GitHub to the local disk (for example: E:\Learning\JS);
Address: Https://github.com/madrobby/zepto
3, will download the Zepto compressed package decompression, enter, find make file, open, find the 42nd line of the location, add the required module name (here I added fx_methods and FX module), separated by a space;
For example:
Zepto Module Name:
4, run, cmd Open the Command window, and enter the Zepto file directory;
Or select the folder Shift key and right-click the "Open Command Window Here" shortcut to open;
5, the implementation of NPM Install command;
6, enter NPM run-script Dist command, to build;
After successful execution, there is a file in the Dist folder that says the package was successful
Zepto.js Custom Packaging Integration Other module build process