Cross-platform development of Ali Weex Framework Environment Construction (II.)

Source: Internet
Author: User

Disclaimer: Original articles, reproduced please indicate the source, thank you! Http://www.cnblogs.com/fozero/p/5995195.html

In the previous article (http://www.cnblogs.com/fozero/p/5995122.html) we set up the Weex environment and successfully rendered the page in the browser, this article we then build a project

1, create a new folder such as Weexdemo;

2, in the folder execution Weex init, parameters all default can be;

3, after the success of the folder generated a number of files:

Weexdemo

|-.gitignore

|-index.html h5 Display Page

|-src/main.we Default Import We source files

|-package.json Package Configuration

|-webpack.config.js Webpack Package configuration file

|-README.MD Packaging Script Description

4. Implement NPM Install Project dependency Package

You can see that there are more node_modules to indicate that the installation was successful

5. Demo Run

Enter the SRC directory input Weex main.we

The browser runs successfully at this time Weex default main page

Cross-platform development of Ali Weex Framework Environment Construction (II.)

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.