Skip to content

Commit da73b58

Browse files
authoredNov 17, 2023
fix: CSS missing after build (#3217)
closes #3216
1 parent 2c6a7cb commit da73b58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/node/plugin.ts

+4
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ export async function createVitePressPlugin(
346346
bundle[name + '-lean'] = {
347347
...chunk,
348348
fileName: chunk.fileName.replace(/\.js$/, '.lean.js'),
349+
preliminaryFileName: chunk.preliminaryFileName.replace(
350+
/\.js$/,
351+
'.lean.js'
352+
),
349353
code: chunk.code.replace(staticStripRE, `""`)
350354
}
351355

0 commit comments

Comments
 (0)
Please sign in to comment.