mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 03:28:12 +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 () => {
|
const compileAssets = async () => {
|
||||||
await fs.copy("./client/homebrew/favicon.ico", "./build/assets/favicon.ico");
|
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//
|
//v==----------------------------- COMPILE THEMES --------------------------------==v//
|
||||||
|
|
||||||
// Update list of all Theme files
|
// 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 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
|
// Move assets
|
||||||
await fs.copy("./themes/fonts", "./build/fonts");
|
await fs.copy("./themes/fonts", "./build/fonts");
|
||||||
await fs.copy("./themes/assets", "./build/assets");
|
await fs.copy("./themes/assets", "./build/assets");
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ async function start() {
|
|||||||
vite = await createViteServer({
|
vite = await createViteServer({
|
||||||
server: { middlewareMode: true },
|
server: { middlewareMode: true },
|
||||||
appType: "custom",
|
appType: "custom",
|
||||||
logLevel: 'error',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,11 @@
|
|||||||
@import './tooltip.less';
|
@import './tooltip.less';
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family : 'CodeLight';
|
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-face {
|
||||||
font-family : 'CodeBold';
|
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 {
|
html,body, #reactRoot {
|
||||||
height : 100vh;
|
height : 100vh;
|
||||||
|
|||||||
Reference in New Issue
Block a user