fix
This commit is contained in:
parent
247bf73683
commit
4e44c59e08
|
|
@ -1,8 +1,3 @@
|
||||||
//@ts-nocheck
|
//@ts-nocheck
|
||||||
import f1 from "bundle-text:@fontsource/jetbrains-mono/index.css";
|
import "@fontsource/jetbrains-mono";
|
||||||
import f2 from "bundle-text:@fontsource/source-sans-3/index.css";
|
import "@fontsource/source-sans-3";
|
||||||
|
|
||||||
let style = document.createElement("style");
|
|
||||||
style.textContent = f1.replaceAll(`url("`, `url("/`) + f2.replaceAll(`url("`, `url("/`);
|
|
||||||
style.id = "font";
|
|
||||||
document.head.appendChild(style);
|
|
||||||
|
|
@ -17,8 +17,7 @@ export const parcelBuild = async () => {
|
||||||
),
|
),
|
||||||
g.mode === "dev" ? "watch" : "build",
|
g.mode === "dev" ? "watch" : "build",
|
||||||
"./src/index.html",
|
"./src/index.html",
|
||||||
g.mode === "dev" ? "--no-hmr" : "--no-optimize",
|
g.mode === "dev" ? "--no-hmr" : "",
|
||||||
"--no-content-hash",
|
|
||||||
"--dist-dir",
|
"--dist-dir",
|
||||||
dir.path(`app/static`),
|
dir.path(`app/static`),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue