build: webpack 캐시를 버전이 바뀌어도 계속 사용하도록 설정
This commit is contained in:
@@ -58,6 +58,7 @@ module.exports = (env, argv) => {
|
|||||||
for (const [entry, filePath] of Object.entries(build_exports.ingame) ?? []) {
|
for (const [entry, filePath] of Object.entries(build_exports.ingame) ?? []) {
|
||||||
entryIngame[entry] = `${tsDir}/${filePath}`;
|
entryIngame[entry] = `${tsDir}/${filePath}`;
|
||||||
}
|
}
|
||||||
|
const cacheDirectory = path.resolve(__dirname, 'node_modules/.cache/webpack')
|
||||||
|
|
||||||
const optimization = {
|
const optimization = {
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
@@ -194,6 +195,8 @@ module.exports = (env, argv) => {
|
|||||||
],
|
],
|
||||||
cache: {
|
cache: {
|
||||||
type: 'filesystem',
|
type: 'filesystem',
|
||||||
|
cacheDirectory,
|
||||||
|
cacheLocation: path.resolve(cacheDirectory, `ingame_vue_${mode}`)
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const ingame = {
|
const ingame = {
|
||||||
@@ -267,6 +270,8 @@ module.exports = (env, argv) => {
|
|||||||
],
|
],
|
||||||
cache: {
|
cache: {
|
||||||
type: 'filesystem',
|
type: 'filesystem',
|
||||||
|
cacheDirectory,
|
||||||
|
cacheLocation: path.resolve(cacheDirectory, `ingame_ts_${mode}`)
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const gateway = {
|
const gateway = {
|
||||||
@@ -345,6 +350,8 @@ module.exports = (env, argv) => {
|
|||||||
],
|
],
|
||||||
cache: {
|
cache: {
|
||||||
type: 'filesystem',
|
type: 'filesystem',
|
||||||
|
cacheDirectory,
|
||||||
|
cacheLocation: path.resolve(cacheDirectory, `gateway_ts_${mode}`)
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user