作者回复: 示例已经上传到 Github 了,仓库地址是:https://github.com/cpselvis/builder-webpack/tree/master/example 重点关注下 npm scripts 的修改,指向到 npm 包的对应配置即可,同时项目里的依赖可以删除掉构建相关的依赖。当然,大型团队的做法可以通过 CLI 的方式去替换 npm scripts "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --config ./node_modules/builder-webpack-geektime/lib/webpack.prod.js", "watch": "webpack --watch", "dev": "webpack-dev-server --config ./node_modules/builder-webpack-geektime/lib/webpack.dev.js --open", "build:ssr": "webpack --config ./node_modules/builder-webpack-geektime/lib/webpack.ssr.js", "build:stats": "webpack --config webpack.prod.js --json > stats.json", "dll": "webpack --config webpack.dll.js" },