We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd6052e commit 9b8b386Copy full SHA for 9b8b386
scripts/build/build.ts
@@ -31,6 +31,16 @@ import yargsParser from "yargs-parser";
31
"recursive": true
32
});
33
34
+ {
35
+ const filePath = pathJoin(dsfrDirPath, "dsfr.css");
36
+
37
+ const dsfrCssContent = fs.readFileSync(filePath).toString("utf8");
38
39
+ const dsfrCssContent_patched = dsfrCssContent.replace('@charset "UTF-8";', "");
40
41
+ fs.writeFileSync(filePath, Buffer.from(dsfrCssContent_patched, "utf8"));
42
+ }
43
44
fs.cpSync(
45
pathJoin(__dirname, "marianne-index.css"),
46
pathJoin(dsfrDirPath, "fonts", "index.css")
scripts/build/main.css
@@ -1,2 +1,3 @@
1
+@charset "UTF-8";
2
@import url(./dsfr/dsfr.css);
3
@import url(./dsfr/utility/icons/icons.min.css)
0 commit comments