Zepto. js custom packaging integration with other modules building process, zepto. js Process

Source: Internet
Author: User
Tags install node

Zepto. js custom packaging integration with other modules building process, zepto. js Process

1. First install node. js and npm package management tools on your computer;


2. Download The zepto. js source file package from github to a local disk (for example, E: \ Learning \ JS );

Address: https://github.com/madrobby/zepto



3. decompress the downloaded zepto package, go to the directory, find the make file, open the file, find the location of row 42nd, and add the required Module name (here I added the fx_methods and fx modules ), separated by spaces;


For example:


Zepto Module name:



4. When running, run cmd to open the command window and enter the zepto file directory;

Or press shift in the selected folder and right-click the folder and select "Open command window here;



5. Run the npm install command;



6. Enter the npm run-script dist command to build the program;



After the execution is successful, how can I have the following files in the dist Folder: the package is successful





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.