你安装的应该是webpack的2.x 版本。需要require('path") var path = require("path") path: path.resolve(__dirname, './dist'),