diff --git a/scripts/compileAssets.js b/scripts/compileAssets.js index 19c2c3cac..0c2d2ef63 100644 --- a/scripts/compileAssets.js +++ b/scripts/compileAssets.js @@ -5,6 +5,11 @@ const isDev = !!process.argv.find((arg) => arg === "--dev"); const compileAssets = async () => { await fs.copy("./client/homebrew/favicon.ico", "./build/assets/favicon.ico"); + let assets = fs.readdirSync("./shared/naturalcrit/styles"); + for (const file of assets) { + await fs.copy(`./shared/naturalcrit/styles/${file}`, `./build/fonts/${file}`); + } + //v==----------------------------- COMPILE THEMES --------------------------------==v// // Update list of all Theme files @@ -53,14 +58,6 @@ const compileAssets = async () => { await fs.outputFile("./themes/themes.json", JSON.stringify(themes, null, 2)); - // await less.render(lessCode, { - // compress : !dev, - // sourceMap : (dev ? { - // sourceMapFileInline: true, - // outputSourceFiles: true - // } : false), - // }) - // Move assets await fs.copy("./themes/fonts", "./build/fonts"); await fs.copy("./themes/assets", "./build/assets"); diff --git a/server.js b/server.js index d2dea2de5..0405128ff 100644 --- a/server.js +++ b/server.js @@ -13,7 +13,6 @@ async function start() { vite = await createViteServer({ server: { middlewareMode: true }, appType: "custom", - logLevel: 'error', }); } diff --git a/shared/naturalcrit/styles/core.less b/shared/naturalcrit/styles/core.less index 9c7b99aa5..1c35cd1dd 100644 --- a/shared/naturalcrit/styles/core.less +++ b/shared/naturalcrit/styles/core.less @@ -6,11 +6,11 @@ @import './tooltip.less'; @font-face { font-family : 'CodeLight'; - src : data-uri('naturalcrit/styles/CODE Light.otf') format('opentype'); + src : url('../../../shared/naturalcrit/styles/CODE Light.otf') format('opentype'); } @font-face { font-family : 'CodeBold'; - src : data-uri('naturalcrit/styles/CODE Bold.otf') format('opentype'); + src : url('../../../shared/naturalcrit/styles/CODE Bold.otf') format('opentype'); } html,body, #reactRoot { height : 100vh;