Skip to content

Commit 314f5b3

Browse files
committed
test preprocess with svelte-kit
1 parent cefbb3f commit 314f5b3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

example/svelte-kit/src/routes/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1 class="title">Welcome to SvelteKit</h1>
22
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
33

4-
<style>
4+
<style module>
55
.title {
66
color: blue;
77
}

example/svelte-kit/svelte.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
// import cssModules from '../../dist';
1+
import cssModules from '../../dist/index.mjs';
22

33
/** @type {import('@sveltejs/kit').Config} */
44
const config = {
55
kit: {
66
// hydrate the <div id="svelte"> element in src/app.html
77
target: '#svelte'
88
},
9-
// preprocess: [
10-
// cssModules({
11-
// includePaths: ['./']
12-
// })
13-
// ]
9+
preprocess: [
10+
cssModules({
11+
includePaths: ['./']
12+
}),
13+
]
1414
};
1515

1616
export default config;

0 commit comments

Comments
 (0)