Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ctx-core/svelte-preprocess

Preprocessing scripts for svelte
https://github.com/ctx-core/svelte-preprocess

Last synced: 30 days ago
JSON representation

Preprocessing scripts for svelte

Awesome Lists containing this project

README

        

# @ctx-core/svelte-preprocess

Preprocessing scripts for svelte

## Install

```shell
npm i @ctx-core/svelte-preprocess
```

## Preprocess

```javascript
// rollup.config.js
import { proprocess_ } from '@ctx-core/svelte/node'
const preprocess = proprocess_([
// preprocess object 1,
// preprocess object 2,
])
export default {
client: {
//...
plugins: [
// ...
svelte({
// ...
preprocess,
}),
// ...
],
// ...
},
server: {
//...
plugins: [
// ...
svelte({
// ...
preprocess,
}),
// ...
],
// ...
},
serviceworker: {
// ...
},
}
```