From 5ef07d54a8085f22b3168b5da335430bf984aed0 Mon Sep 17 00:00:00 2001 From: Levko Kravets Date: Tue, 12 Mar 2019 21:08:25 +0200 Subject: [PATCH] Fix webpack config to work with symlinks --- webpack.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 9e8cde86b1..7d9650c09d 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -17,12 +17,12 @@ const isProduction = process.env.NODE_ENV === "production"; const redashBackend = process.env.REDASH_BACKEND || "http://localhost:5000"; -const basePath = fs.realpathSync(path.join(__dirname, "client")); -const appPath = fs.realpathSync(path.join(__dirname, "client", "app")); +const basePath = path.join(__dirname, "client"); +const appPath = path.join(__dirname, "client", "app"); const extensionsRelativePath = process.env.EXTENSIONS_DIRECTORY || path.join("client", "app", "extensions"); -const extensionPath = fs.realpathSync(path.join(__dirname, extensionsRelativePath)); +const extensionPath = path.join(__dirname, extensionsRelativePath); const config = { mode: isProduction ? "production" : "development", @@ -40,11 +40,12 @@ const config = { publicPath: "/static/" }, resolve: { + symlinks: false, extensions: ['.js', '.jsx'], alias: { "@": appPath, "extensions": extensionPath - } + }, }, plugins: [ new WebpackBuildNotifierPlugin({ title: "Redash" }),