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