diff --git a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js index 8173373340..da457f33f4 100644 --- a/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js +++ b/packages/@vuepress/core/lib/node/webpack/createBaseConfig.js @@ -310,5 +310,5 @@ function getLastCommitHash () { } function getModulePaths () { - return [path.resolve(process.cwd(), 'node_modules')].concat(module.paths) + return module.paths.concat([path.resolve(process.cwd(), 'node_modules')]) }