We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cefbb3f commit 314f5b3Copy full SHA for 314f5b3
example/svelte-kit/src/routes/index.svelte
@@ -1,7 +1,7 @@
1
<h1 class="title">Welcome to SvelteKit</h1>
2
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
3
4
-<style>
+<style module>
5
.title {
6
color: blue;
7
}
example/svelte-kit/svelte.config.js
@@ -1,16 +1,16 @@
-// import cssModules from '../../dist';
+import cssModules from '../../dist/index.mjs';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'
8
},
9
- // preprocess: [
10
- // cssModules({
11
- // includePaths: ['./']
12
- // })
13
- // ]
+ preprocess: [
+ cssModules({
+ includePaths: ['./']
+ }),
+ ]
14
};
15
16
export default config;
0 commit comments