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:
@@ -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");
|
||||
|
||||
@@ -13,7 +13,6 @@ async function start() {
|
||||
vite = await createViteServer({
|
||||
server: { middlewareMode: true },
|
||||
appType: "custom",
|
||||
logLevel: 'error',
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user