1.9.3.1
Fix fonts and reduce number loaded Add fonts to build.js
This commit is contained in:
@@ -171,7 +171,17 @@ async function build() {
|
||||
}
|
||||
}
|
||||
|
||||
// 6. Copy static files
|
||||
// 6. Copy fonts
|
||||
console.log(' Copying fonts...');
|
||||
const fontsDir = path.join(ROOT, 'assets', 'fonts');
|
||||
if (fs.existsSync(fontsDir)) {
|
||||
for (const f of fs.readdirSync(fontsDir)) {
|
||||
copyFile(path.join(fontsDir, f), path.join(DIST, 'fonts', f));
|
||||
}
|
||||
console.log(' -> fonts/ (' + fs.readdirSync(fontsDir).length + ' files)');
|
||||
}
|
||||
|
||||
// 7. Copy static files
|
||||
console.log(' Copying static files...');
|
||||
for (const f of ['robots.txt', 'sitemap.xml', 'og-image.png']) {
|
||||
const src = path.join(ROOT, f);
|
||||
|
||||
Reference in New Issue
Block a user