2022-04-16 00:29:35 -07:00
|
|
|
---
|
|
|
|
|
title: Configure
|
|
|
|
|
---
|
|
|
|
|
|
2022-05-07 17:22:33 -07:00
|
|
|
To make use of the built-in icons, styles, and plugins in omorphia, you will need to update your project's config files.
|
2022-04-16 00:29:35 -07:00
|
|
|
|
2022-05-20 00:10:45 -07:00
|
|
|
## SvelteKit
|
2022-04-16 00:29:35 -07:00
|
|
|
|
|
|
|
|
Add the following parts to your `svelte.config.js` file:
|
|
|
|
|
|
|
|
|
|
```js
|
2022-06-20 23:50:33 -07:00
|
|
|
import { preprocess, plugins } from 'omorphia/config/svelte.js'
|
2022-04-16 00:29:35 -07:00
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
|
const config = {
|
2022-05-26 19:17:15 -07:00
|
|
|
preprocess: [preprocess],
|
2022-04-16 00:29:35 -07:00
|
|
|
|
2022-05-26 19:17:15 -07:00
|
|
|
kit: {
|
|
|
|
|
vite: {
|
|
|
|
|
plugins: [...plugins],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
2022-04-16 00:29:35 -07:00
|
|
|
|
2022-05-26 19:17:15 -07:00
|
|
|
export default config
|
2022-04-16 00:29:35 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## PostCSS
|
|
|
|
|
|
|
|
|
|
Create a `postcss.config.cjs` file in the root of your project.
|
|
|
|
|
|
|
|
|
|
Add the following line to that file:
|
|
|
|
|
|
|
|
|
|
```js
|
2022-06-20 23:50:33 -07:00
|
|
|
module.exports = require('omorphia/config/postcss.cjs')
|
2022-05-20 00:10:45 -07:00
|
|
|
```
|