frontendmasters Web Performance

2018-11-09  本文已影响0人  云峰yf

Web Performance with Webpack

Top Performance Issues

Performance Goals

Code Coverage

Code Splitting

Types of Code Splitting

Code Splitting Demonstration

Webpack Code Splitting Under the Hood

Load a Heavy Module Asynchronously

Code Splitting in Vue, React, & Frameworks

Code Splitting Named Exports

Vendor Bundles are an Anti Pattern

Dynamic Code Splitting

Dynamic Code Splitting Walkthrough

Introducing Magic Comments

const getFooter = () => import(/* webpackChunkName: "footer" */ "./footer");

Webpack Modes

const setButtonStyle = (color) => import(/* webpackMode: "lazy-once" */`./button-styles/${color}.js`);

Webpack Prefetch & Preload

const getLodash = () => import(/* webpackPreload: true */"lodash-es");

Wrapping Up Code Splitting

Webpack Config Organization

webpack 配置碎片化

Building Your Library with Webpack

上一篇下一篇

猜你喜欢

热点阅读