1. 安装 npm install yarn -g 2. 初始化文件 yarn init -y 3. 安装webpack yarn add webpack webpack-cli 4. 延迟加载 defer