Skip to content

Commit

Permalink
frontend/svelte: fix failure on ineffective css
Browse files Browse the repository at this point in the history
  • Loading branch information
terrablue committed Jul 14, 2024
1 parent ecb6415 commit cff72a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/frontends/svelte/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const publish = (app, extension) => ({
// Convert Svelte syntax to JavaScript
const { js, css } = compile.client(source);
let contents = js;
if (css !== null) {
if (css !== null && css !== "") {
const path = File.webpath(`${args.path}css`);
app.build.save(path, css);
contents += `\nimport "${path}";`;
Expand Down

0 comments on commit cff72a2

Please sign in to comment.