45

Webpack 将代码打包成什么样子? - 不挑食的程序员 - SegmentFault 思否

 5 years ago
source link: https://segmentfault.com/a/1190000014129037
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
可能你学会了如何使用 Webpack ,也大致知道其工作原理,可是你想过 Webpack 输出的 bundle.js 是什么样子的吗? 为什么原来一个个的模块文件被合并成了一个单独的文件?为什么 bundle.js 能直接运行在浏览器中?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK