From bc2dfc54039b68e85f3560faa82be8d2b63bd462 Mon Sep 17 00:00:00 2001 From: hide_d Date: Wed, 15 Dec 2021 02:28:47 +0900 Subject: [PATCH] =?UTF-8?q?build:=20webpack=20=EC=BA=90=EC=8B=9C=EB=A5=BC?= =?UTF-8?q?=20=EB=B2=84=EC=A0=84=EC=9D=B4=20=EB=B0=94=EB=80=8C=EC=96=B4?= =?UTF-8?q?=EB=8F=84=20=EA=B3=84=EC=86=8D=20=EC=82=AC=EC=9A=A9=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack.config.cjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webpack.config.cjs b/webpack.config.cjs index 06e57d8a..265d47c7 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -58,6 +58,7 @@ module.exports = (env, argv) => { for (const [entry, filePath] of Object.entries(build_exports.ingame) ?? []) { entryIngame[entry] = `${tsDir}/${filePath}`; } + const cacheDirectory = path.resolve(__dirname, 'node_modules/.cache/webpack') const optimization = { splitChunks: { @@ -194,6 +195,8 @@ module.exports = (env, argv) => { ], cache: { type: 'filesystem', + cacheDirectory, + cacheLocation: path.resolve(cacheDirectory, `ingame_vue_${mode}`) }, }; const ingame = { @@ -267,6 +270,8 @@ module.exports = (env, argv) => { ], cache: { type: 'filesystem', + cacheDirectory, + cacheLocation: path.resolve(cacheDirectory, `ingame_ts_${mode}`) }, }; const gateway = { @@ -345,6 +350,8 @@ module.exports = (env, argv) => { ], cache: { type: 'filesystem', + cacheDirectory, + cacheLocation: path.resolve(cacheDirectory, `gateway_ts_${mode}`) }, };