Skip to content

Commit

Permalink
🏗️ [doc/build] fix font size file path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
higuaifan committed Jan 13, 2025
1 parent c0e192f commit ec3b1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/script/fontmin/replaceFileSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as fs from 'fs';

const s = fs.statSync('../../.output/public/fonts/wljh.ttf');

const file = '../../.output/server/chunks/runtime.mjs';
const file = '../../.output/server/chunks/nitro/nitro.mjs';
fs.readFile(file, (err, data) => {
let str = data.toString();
const info = str.match(/\/fonts\/wljh.ttf[^}]*/);
Expand Down

0 comments on commit ec3b1d7

Please sign in to comment.