summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-10-19 16:46:58 +0000
committerClement Ho <clemmakesapps@gmail.com>2018-10-19 16:46:58 +0000
commite90adb67a54a51b125e41cb3eb021d49ff3140c6 (patch)
tree60973af0ff66da1c411adfd5578642d36f9bd896
parent3e1e9dc6e655bf7cc20467341cb7d2f732dd2106 (diff)
parent129abb2964c671007a91e0cf586e0407900e1e8b (diff)
downloadgitlab-ce-e90adb67a54a51b125e41cb3eb021d49ff3140c6.tar.gz
Merge branch 'allow-to-configure-cache-path' into 'master'
Allow to configure cache path for webpack See merge request gitlab-org/gitlab-ce!22497
-rw-r--r--config/webpack.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 583f05f2fb7..9ecae9790fd 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -8,7 +8,7 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const ROOT_PATH = path.resolve(__dirname, '..');
-const CACHE_PATH = path.join(ROOT_PATH, 'tmp/cache');
+const CACHE_PATH = process.env.WEBPACK_CACHE_PATH || path.join(ROOT_PATH, 'tmp/cache');
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
const IS_DEV_SERVER = process.argv.join(' ').indexOf('webpack-dev-server') !== -1;
const DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';