Files
dealplustech/dealplustech-astro/node_modules/astro/dist/cli/flags.js
Kunthawat Greethong 3ed9f3f3ff 🎨 Fix CSS: Import global.css + plain CSS styles
CSS was not being imported! Fixed:

 Added 'import ../styles/global.css' to BaseLayout.astro
 Rewrote CSS with plain CSS (not @apply which wasn't working)
 Cookie banner has inline styles as backup
 Font size: 16px base
 Solid colors: green-600 (#16a34a), gray-900 (#111827)
 Footer has policy links

Build: 12 pages 
2026-03-10 08:21:30 +07:00

38 lines
1.3 KiB
JavaScript

import { Logger } from "../core/logger/core.js";
import { nodeLogDestination } from "../core/logger/node.js";
function flagsToAstroInlineConfig(flags) {
return {
// Inline-only configs
configFile: typeof flags.config === "string" ? flags.config : void 0,
mode: typeof flags.mode === "string" ? flags.mode : void 0,
logLevel: flags.verbose ? "debug" : flags.silent ? "silent" : void 0,
force: flags.force ? true : void 0,
// Astro user configs
root: typeof flags.root === "string" ? flags.root : void 0,
site: typeof flags.site === "string" ? flags.site : void 0,
base: typeof flags.base === "string" ? flags.base : void 0,
outDir: typeof flags.outDir === "string" ? flags.outDir : void 0,
server: {
port: typeof flags.port === "number" ? flags.port : void 0,
host: typeof flags.host === "string" || typeof flags.host === "boolean" ? flags.host : void 0,
open: typeof flags.open === "string" || typeof flags.open === "boolean" ? flags.open : void 0
}
};
}
function createLoggerFromFlags(flags) {
const logging = {
dest: nodeLogDestination,
level: "info"
};
if (flags.verbose) {
logging.level = "debug";
} else if (flags.silent) {
logging.level = "silent";
}
return new Logger(logging);
}
export {
createLoggerFromFlags,
flagsToAstroInlineConfig
};