Skip to content

Commit

Permalink
fix: CSS missing after build (#3217)
Browse files Browse the repository at this point in the history
closes #3216
  • Loading branch information
sapphi-red committed Nov 17, 2023
1 parent 2c6a7cb commit da73b58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node/plugin.ts
Expand Up @@ -346,6 +346,10 @@ export async function createVitePressPlugin(
bundle[name + '-lean'] = {
...chunk,
fileName: chunk.fileName.replace(/\.js$/, '.lean.js'),
preliminaryFileName: chunk.preliminaryFileName.replace(
/\.js$/,
'.lean.js'
),
code: chunk.code.replace(staticStripRE, `""`)
}

Expand Down

0 comments on commit da73b58

Please sign in to comment.