Skip to content

Commit

Permalink
[docs] Update 60-assets.md (#8120)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
  • Loading branch information
Rich-Harris and dummdidumm committed Dec 13, 2022
1 parent 7702bb7 commit df6feab
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions documentation/docs/30-advanced/60-assets.md
Expand Up @@ -16,18 +16,7 @@ title: Asset handling

If you prefer to reference assets directly in the markup, you can use a preprocessor such as [svelte-preprocess-import-assets](https://github.com/bluwy/svelte-preprocess-import-assets).

For assets included via the CSS `url()` function, you may find the [`experimental.useVitePreprocess`](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#usevitepreprocess) option useful:

```js
// svelte.config.js
export default {
vitePlugin: {
experimental: {
useVitePreprocess: true
}
}
};
```
For assets included via the CSS `url()` function, you may find [`vitePreprocess`]([https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#usevitepreprocess](https://kit.svelte.dev/docs/integrations#preprocessors-vitepreprocess)) useful.

## Transforming

Expand Down

0 comments on commit df6feab

Please sign in to comment.