Project after the packaging size is the key factors deciding the size of the client request resources, project packaging bigger represents a user from the open web page to see the more time resources, user experience nature, the worse, so our project as lightweight as possible for the user experience of ascension has great effect, code is also not very fat, the following is a solution:

  • 1. Do not package the sourceMap file

  • 2. Do not pack library files

  • 3. Introduce third-party plug-ins as required

  • 4. Lazy route loading

  • 5. Server rendering