Mobile front-end optimization, should find the right-father!

Source: Internet
Author: User

My directory

1:webpack Article recommendation

2: Leaves-Chai article recommended

3: Optimization of my project

1>> if the front-end building is grunt, then the godfather is gulp, and Xingan Father (Webpack):

Webpack can be well integrated with grunt, gulp, karma and other existing tools. And Webpack does not provide the module download, but it can be well with the existing Package manager, we can still use NPM, Bower, component and so on to manage your web development resources, while loading them in Webpack.

The article recommends the following:

Webpack module Manager for Web development: http://hanjianwei.com/2014/09/10/webpack-package-manager-for-web/

2>> front end There are too many optimization means to consider and ponder, before looking at the Yego front-end best practices, feel very inspired, the article recommended as follows:

On the best practice of mobile front end: http://www.cnblogs.com/yexiaochai/p/4219523.html

3>> I'm talking about me. In my spa Project, a point for project optimization is introduced: optimize for requests, and do modular work

If the pro-dad of MVVM is knockout, then its godfather is estimated to be Angular,Avalon ,Vue, React and so on, choose a good MVVM framework for the project optimization maintenance is also very important, here side dishes I do not aim at the quality of the various frameworks to explain, which is inferior I think practice + Suitable scene is the best test method, The frame I chose in my project was Vue + Webpack, and I've been very concerned about it and I think it's focused.

The webpack.config.js file is configured as follows:

I think in mobile optimization, the best thing to do is to optimize for the request, then you have to be modular for the project.

For example: the development of the time is like this: index.cssindex.jstemplate.html The final release is like this: Build1.js

This optimization is most noticeable by merging 3 requests into 1 .

1:

2:

Mobile front-end optimization, should find the right-father!

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.