https://github.com/ryoppippi/svelte-preprocess-budoux
svelte-preprocess plugin for Budoux
https://github.com/ryoppippi/svelte-preprocess-budoux
budoux svelte svelte-preprocess svelte-preprocessor
Last synced: 3 months ago
JSON representation
svelte-preprocess plugin for Budoux
- Host: GitHub
- URL: https://github.com/ryoppippi/svelte-preprocess-budoux
- Owner: ryoppippi
- License: mit
- Created: 2024-07-10T22:10:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T09:40:30.000Z (3 months ago)
- Last Synced: 2025-04-03T11:48:42.130Z (3 months ago)
- Topics: budoux, svelte, svelte-preprocess, svelte-preprocessor
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/svelte-preprocess-budoux
- Size: 1.03 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yaml
- License: LICENSE
Awesome Lists containing this project
README
# svelte-preprocess-budoux
[](https://npmjs.com/package/svelte-preprocess-budoux)
[](https://npmjs.com/package/svelte-preprocess-budoux)[](https://jsr.io/@ryoppippi/svelte-preprocess-budoux)
[](https://jsr.io/@ryoppippi/svelte-preprocess-budoux)
## Installation
```bash
npm install -D svelte-preprocess-budoux budoux# or
npx jsr install -D @ryoppippi/svelte-preprocess-budoux
```## Configuration
You can choose svelte prerocessor or sveltekit hooks
### Preprocessor
`svelte.config.js`
```js
import { budouxPreprocess } from 'svelte-preprocess-budoux';const config = {
preprocess: [
vitePreprocess(),
budouxPreprocess({ language: 'ja' }),
],
// ... other svelte options
};export default config;
```### SvelteKit hooks
`hooks.server.js`
```js
import { budouxHandle } from 'svelte-preprocess-budoux';export const handle = budouxHandle({ language: 'ja' });
```