Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit59e92ca

Browse files
committed
chore: add experimental _tmpDir config (#1571)
1 parentd2beec0 commit59e92ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎gridsome/lib/app/loadConfig.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,17 @@ module.exports = async (context, options = {}) => {
121121
config.appPath=path.resolve(__dirname,'../../app')
122122

123123
// Cache paths
124-
if(process.versions.pnp==='1'){
124+
125+
if(localConfig._tmpDir){
126+
config.cacheDir=path.resolve(context,localConfig._tmpDir)
127+
}elseif(process.versions.pnp==='1'){
125128
config.cacheDir=resolve('.pnp/.cache/gridsome')
126129
}elseif(process.versions.pnp==='3'){
127130
config.cacheDir=resolve('.yarn/.cache/gridsome')
128131
}else{
129132
config.cacheDir=resolve('node_modules/.cache/gridsome')
130133
}
134+
131135
config.appCacheDir=path.join(config.cacheDir,'app')
132136
config.imageCacheDir=path.join(config.cacheDir,'assets')
133137

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp