File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
packages/vite-plugin-svelte Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ module.exports = defineConfig(({ command, mode }) => {
12
12
return {
13
13
plugins: [
14
14
svelte ({
15
- hot: ! isProduction,
16
- emitCss: true
15
+ /* inline options here */
17
16
})
18
17
],
19
18
build: {
@@ -25,9 +24,19 @@ module.exports = defineConfig(({ command, mode }) => {
25
24
26
25
## Options
27
26
28
- ``` ts
29
- // TODO
30
- ```
27
+ vite-plugin-svelte reads the vite configuration and uses an appropriate default configuration
28
+
29
+ It also loads ` svelte.config.js ` (or ` svelte.config.cjs ` ) from the configured ` vite.root ` directory automatically.
30
+
31
+ Options are applied in the following order:
32
+
33
+ 1 . vite-plugin-svelte defaults
34
+ 2 . svelte.config.js in vite.root
35
+ 3 . inline options passed in vite.config.js
36
+
37
+ It supports all options from rollup-plugin-svelte and some additional options to tailor the plugin to your needs.
38
+
39
+ For more Information check [ options.ts] ( packages/vite-plugin-svelte/src/utils/options.ts )
31
40
32
41
## License
33
42
You can’t perform that action at this time.
0 commit comments