fix: webpack deprecation resolve for relative asset paths

This commit is contained in:
Aetherinox 2024-04-27 03:34:14 -07:00
parent 6d63d519f1
commit c615555bdc
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const wawoff2 = require('wawoff2');
const svgBaseDir = path.resolve('node_modules/@fortawesome/fontawesome-free/svgs/');
const svgDirs = ['brands', 'regular', 'solid']
.map((dir) => path.join(svgBaseDir, dir))
.concat('graphics/svg');
.concat(path.resolve('graphics/svg'));
const allIcons = {};
@ -133,6 +133,7 @@ function buildFont(loader, scssSource) {
// console.log(toSymbol(charCode));
fontStream.write(glyph);
}
fontStream.end();
return new Promise((resolve, reject) => {