Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JimLiu/793d8f21c54cda73561d60f4de11b122 to your computer and use it in GitHub Desktop.
Save JimLiu/793d8f21c54cda73561d60f4de11b122 to your computer and use it in GitHub Desktop.
1
00:00:01,000 --> 00:00:05,351
在开发过程中,我们会优化代码,以提高开发效率。
2
00:00:05,351 --> 00:00:09,334
将代码拆分成不同的文件或模块,
3
00:00:09,334 --> 00:00:14,660
按需导入导出代码,以实现更复杂的功能。
4
00:00:14,660 --> 00:00:17,270
然后,在部署应用程序时,我们会针对应用程序进行优化。
5
00:00:17,270 --> 00:00:20,040
针对应用程序将要运行的计算机进行优化。
6
00:00:20,040 --> 00:00:24,694
我们会根据模块依赖图,将相关代码重新组装成一体,
7
00:00:26,710 --> 00:00:28,299
这个过程被称为打包。
8
00:00:28,299 --> 00:00:32,162
在打包过程中,我们还可能选择将包分割成不同部分。
9
00:00:32,162 --> 00:00:37,731
例如,我们可能通过路由进行代码切割,并清除未使用的关联性。
10
00:00:39,359 --> 00:00:42,233
这样,当访问特定路由时,
11
00:00:42,233 --> 00:00:47,673
只会加载该路由所需的代码。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment