0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 06:48:11 +00:00

stable version, small fixes

This commit is contained in:
Víctor Losada Hernández
2026-01-30 18:56:24 +01:00
parent 7deec9cd6e
commit 390ff68a6b
3 changed files with 7 additions and 11 deletions

View File

@@ -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");

View File

@@ -13,7 +13,6 @@ async function start() {
vite = await createViteServer({
server: { middlewareMode: true },
appType: "custom",
logLevel: 'error',
});
}

View File

@@ -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;