[Solution found!] Webpack> 2.0 请参阅wtk的答案。 Webpack 1.0 一种更直接的方法是使用resolve.root。 ... 在您的情况下: webpack配置var path = require('path'); //…
確定! 回上一頁