From 09cb3a4e45b8d5371fb7565a2c8f30af3fb991b3 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Fri, 8 Jul 2016 09:48:37 -0700 Subject: [PATCH] expose paths to renderer --- plugins.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins.js b/plugins.js index d8761ec1..a4e1a8b9 100644 --- a/plugins.js +++ b/plugins.js @@ -204,8 +204,14 @@ function getPaths () { }; } +// expose to renderer exports.getPaths = getPaths; +// get paths from renderer +exports.getBasePaths = function () { + return { path, localPath }; +}; + function requirePlugins () { const { plugins, localPlugins } = paths;