@embeddable.com/sdk-core 3.9.1 → 3.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +8 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +8 -5
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/dev.ts +7 -5
package/package.json
CHANGED
package/src/dev.ts
CHANGED
|
@@ -140,11 +140,13 @@ export default async () => {
|
|
|
140
140
|
|
|
141
141
|
const done = finalhandler(request, res);
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
try {
|
|
144
|
+
if (request.url?.endsWith(GLOBAL_CSS)) {
|
|
145
|
+
res.writeHead(200, { "Content-Type": "text/css" });
|
|
146
|
+
res.end(fs.readFileSync(config.client.globalCss));
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
} catch {}
|
|
148
150
|
|
|
149
151
|
serve(request, res, done);
|
|
150
152
|
},
|