This repository was archived by the owner on Sep 25, 2024. It is now read-only.
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
ryoppippi/svelte-preprocess-css-mods
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Successor ofsvelte-preprocess-cssmodules
npx nypm add -D svelte-preprocess-css-mods
// svelte.config.jsimport{cssModules}from'svelte-preprocess-css-mods';exportdefault{preprocess:cssModules({/* options */}),};
Seeoptions for more information.
<!-- App.svelte --><script>importstylesfrom'./App.module.css';</script><divclass={styles.container}><h1class={styles.title}>Hello World!</h1></div>
/* App.module.css */.container {display: flex;justify-content: center;align-items: center;}.title {color: red;}
get converted into:
<script>conststyles= {container:'App_module_container',title:'App_module_title',};</script><divclass={styles.container}><h1class={styles.title}>Hello World!</h1></div><style>.App_module_container {display:flex;justify-content:center;align-items:center; }.App_module_title {color:red; }</style>
- svelte-true-css-modules
- svelte-preprocess-cssmodules
- I forked this project, but I gave it up
About
use css modules in svelte
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.