1. 前提 确保本地环境支持node.js。 2. 配置 https://webpack.js.org/guides/getting-started/ https://segmentfault.com/a/1190000006178770