javascript - Webpack中的file chunk module
PHP中文网
PHP中文网 2017-04-11 09:43:25
0
1
208

看了一遍Webpack文档,对里面的名词有很大的疑惑;

单入口来说:--------其他的不懂,哈哈

file是什么?最终生成的单js文件?

chunk是什么?和module有什么关系?

Code Splitting

webpack has two types of dependencies in its dependency tree: sync and async. Async dependencies act as split points and form a new chunk. After the chunk tree is optimized, a file is emitted for each chunk.
这里的new chunk是指一个新的文件么,页面请求时返回new chunk?
a file for each chunk是指什么?一个chunk一个js文件?

Loaders
webpack can only process JavaScript natively, but loaders are used to transform other resources into JavaScript. By doing so, every resource forms a module.
every resource forms a module.每个资源形成一个模块,这个模块时一个chunk么,是一个单独的请求么?

希望大家帮助我这只迷途的小羊……

PHP中文网
PHP中文网

认证0级讲师

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!