Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ctx-core/svelte-preprocess
- Owner: ctx-core
- License: apache-2.0
- Created: 2022-07-09T21:15:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T00:19:29.000Z (7 months ago)
- Last Synced: 2024-05-22T01:29:42.434Z (7 months ago)
- Language: JavaScript
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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: {
// ...
},
}
```