Webpack: Use cache version scoping in Docker

9e6fbde3cfb064098dc61cd3cb9f6b3d97944ad4

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
webpack.config.js+2 -2
@@ -15,7 +15,7 @@ import { serverDirectory } from './src/server-directory.js';
15export default function getPublicLibConfig(forceDist = false) {15export default function getPublicLibConfig(forceDist = false) {
16 function getCacheDirectory() {16 function getCacheDirectory() {
17 if (forceDist || isDocker()) {17 if (forceDist || isDocker()) {
18 return path.resolve(process.cwd(), 'dist/webpack');18 return path.resolve(process.cwd(), 'dist', '_webpack', webpack.version, 'cache');
19 }19 }
2020
21 if (typeof globalThis.DATA_ROOT === 'string') {21 if (typeof globalThis.DATA_ROOT === 'string') {
@@ -27,7 +27,7 @@ export default function getPublicLibConfig(forceDist = false) {
2727
28 function getOutputDirectory() {28 function getOutputDirectory() {
29 if (forceDist || isDocker()) {29 if (forceDist || isDocker()) {
30 return path.resolve(process.cwd(), 'dist');30 return path.resolve(process.cwd(), 'dist', '_webpack', webpack.version, 'output');
31 }31 }
3232
33 if (typeof globalThis.DATA_ROOT === 'string') {33 if (typeof globalThis.DATA_ROOT === 'string') {