Zepto.js Custom Packaging Integration Other module build process

Source: Internet
Author: User
Tags install node

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

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.