Skip to content

Commit 43cecf9

Browse files
authored
Allow .raw.css files to be imported in the integration (#798)
* Text loader for .raw.css files * changeset * update changeset
1 parent 19773c7 commit 43cecf9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/fuzzy-steaks-end.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/cli': minor
3+
---
4+
5+
Allow .raw.css files to be imported in the integration

packages/cli/src/build.ts

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export async function buildScriptFromManifest(
5757
// If importing a file as `.raw.js`, esbuild will convert to string so we can use that
5858
// file as a string without opening it.
5959
'.raw.js': 'text',
60+
// If importing a file as `.raw.css`, esbuild will convert to string so we can use that
61+
// file as a string without opening it.
62+
'.raw.css': 'text',
6063
},
6164
});
6265

0 commit comments

Comments
 (0)