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!