Skip to content

Commit

Permalink
add support for css option 'none' (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcmrlchtdj committed Apr 10, 2023
1 parent a7f6683 commit 1923765
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions packages/repl/src/lib/Output/CompilerOptions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,18 @@
<span class="boolean">{$compile_options.dev}</span>,
</label>

<label class="option">
<div class="option">
<span class="key">css:</span>
<Checkbox bind:checked={$compile_options.css} />
<span class="boolean">{$compile_options.css}</span>,
</label>

<input id="injected-input" type="radio" bind:group={$compile_options.css} value="injected" />
<label for="injected-input"><span class="string">"injected"</span></label>

<input id="external-input" type="radio" bind:group={$compile_options.css} value="external" />
<label for="external-input"><span class="string">"external"</span></label>

<input id="none-input" type="radio" bind:group={$compile_options.css} value="none" />
<label for="none-input"><span class="string">"none"</span>,</label>
</div>

<label class="option">
<span class="key">hydratable:</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/repl/src/lib/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
const compile_options = writable({
generate: 'dom',
dev: false,
css: false,
css: 'injected',
hydratable: false,
customElement: false,
immutable: false,
Expand Down

2 comments on commit 1923765

@vercel
Copy link

@vercel vercel bot commented on 1923765 Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

hn – ./sites/hn.svelte.dev

hn-git-master-svelte.vercel.app
hn-svelte.vercel.app
sites-zeta.vercel.app
hn.svelte.dev

@vercel
Copy link

@vercel vercel bot commented on 1923765 Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svelte-dev – ./sites/svelte.dev

svelte-dev-svelte.vercel.app
svelte-website.vercel.app
svelte.dev
svelte-dev-git-master-svelte.vercel.app

Please sign in to comment.