Download zepto source code at https://github.com/madrobby/zepto;
can see that Zepto has a lot of function modules, but there is no check. Checking is only some basic usage, you can refer to the official Documentation, let's talk about how to package these modules together:
1. First confirm whether the node.js and npm package management tools are installed in your computer; you can view node -v and npm -v in the terminal output; If you install Baidu on your own;
2. Download the zip package from github: https://github.com/madrobby/zepto, download it to the local open:
, you can find a file named make in this directory. File, find this file, open it with your familiar editor:
at line 41, write the module that needs to be packaged after IE, divide it by space, write it and save it.
3.win+R Enter cmd to enter the command window and enter the cd directory of this file (with spaces in between).
or select the folder and hold down the shift key and right click to select the "Open command window here" shortcut to open;
4. Enter in the black window:
npm run-script dist
The step can be completed. Now go to the root directory of this folder to find the dist folder, you want the big package to pass the module with Zepto just fine.