Skip to content

Commit b80e072

Browse files
committed
add browserjs branding to root devserver
1 parent 89b4859 commit b80e072

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

devserver.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import {
1616
runRspack,
1717
} from "./packages/scramjet/devlib.ts";
1818

19-
const image = await fs.readFile(
20-
"./packages/scramjet/assets/scramjet-mini-noalpha.png"
21-
);
19+
const image = await fs.readFile("./assets/icon.png");
2220

2321
const commit = execSync("git rev-parse --short HEAD", {
2422
encoding: "utf-8",
@@ -64,14 +62,14 @@ const server = await createServer({
6462

6563
await server.listen();
6664

67-
const accent = (text: string) => chalk.hex("#f1855bff").bold(text);
68-
const highlight = (text: string) => chalk.hex("#fdd76cff").bold(text);
65+
const accent = (text: string) => chalk.hex("#4799f1").bold(text);
66+
const highlight = (text: string) => chalk.hex("#ffffff").bold(text);
6967
const urlColor = (text: string) => chalk.hex("#64DFDF").underline(text);
7068
const note = (text: string) => chalk.hex("#CDB4DB")(text);
7169
const connector = chalk.hex("#8D99AE").dim("@");
7270

7371
const lines = [
74-
black()(`${highlight("SCRAMJET DEV SERVER")}`),
72+
black()(`${highlight("BROWSER.JS DEV SERVER")}`),
7573
black()(
7674
`${accent("chrome")} ${connector} ${urlColor(
7775
`http://localhost:${CHROME_PORT}/`
@@ -87,7 +85,7 @@ const lines = [
8785
process.env.VITE_ISOLATION_ORIGIN ?? ""
8886
)}`
8987
),
90-
black()(chalk.dim(`[${branch}] ${commit} scramjet/${version}`)),
88+
black()(chalk.dim(`[${branch}] ${commit} browserjs/${version}`)),
9189
];
9290

9391
printBanner(image, lines);

0 commit comments

Comments
 (0)