From 89bb37916697882ba841399b5b70dda88eccad57 Mon Sep 17 00:00:00 2001 From: cj Date: Thu, 8 Dec 2016 12:03:48 -0600 Subject: [PATCH] now you can change rootDir --- lib/build/webpack/base.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build/webpack/base.config.js b/lib/build/webpack/base.config.js index d872068ae8..be5df6b8e5 100644 --- a/lib/build/webpack/base.config.js +++ b/lib/build/webpack/base.config.js @@ -14,7 +14,7 @@ const { urlJoin } = require('../../utils') |-------------------------------------------------------------------------- */ module.exports = function () { - const nodeModulesDir = join(__dirname, '..', '..', '..', 'node_modules') + const nodeModulesDir = join(this.dir, 'node_modules') let config = { devtool: 'source-map', entry: {