Skip to content

Commit ac035e0

Browse files
committed
remove FAQ entry
1 parent 60eea7e commit ac035e0

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

docs/faq.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,6 @@ Bad:
5454
<script type="text/typescript"></script>
5555
```
5656

57-
### Where should I put my global styles?
58-
59-
Global styles should always be placed in their own stylesheet files whenever possible, and not in a Svelte component's `<style>` tag. The stylesheet files can then be imported directly in JS and take advantage of Vite's own style processing. It would also significantly improve the dev server startup time.
60-
61-
Good:
62-
63-
```scss
64-
/* global.scss */
65-
html {
66-
color: $text-color;
67-
}
68-
```
69-
70-
```js
71-
// main.js
72-
import './global.scss';
73-
```
74-
75-
Bad:
76-
77-
```svelte
78-
<style lang="scss">
79-
:global(html) {
80-
color: $text-color;
81-
}
82-
</style>
83-
```
84-
8557
### Why can't `cssHash` be set in development mode?
8658

8759
`cssHash` is fixed in development for CSS HMR in Svelte components, ensuring that the hash value is stable based on the file name so that styles are only updated when changed.

0 commit comments

Comments
 (0)