Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:14:46.000Z (3 months ago)
- Last Synced: 2024-10-24T15:08:51.715Z (3 months ago)
- Topics: budoux, svelte, svelte-preprocess, svelte-preprocessor
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/svelte-preprocess-budoux
- Size: 609 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-preprocess-budoux
[![npm version](https://img.shields.io/npm/v/svelte-preprocess-budoux?color=yellow)](https://npmjs.com/package/svelte-preprocess-budoux)
[![npm downloads](https://img.shields.io/npm/dm/svelte-preprocess-budoux?color=yellow)](https://npmjs.com/package/svelte-preprocess-budoux)[![JSR](https://jsr.io/badges/@ryoppippi/svelte-preprocess-budoux)](https://jsr.io/@ryoppippi/svelte-preprocess-budoux)
[![JSR](https://jsr.io/badges/@ryoppippi/svelte-preprocess-budoux/score)](https://jsr.io/@ryoppippi/svelte-preprocess-budoux)![Screenshot 2024-07-11 at 11 39 44](https://github.com/ryoppippi/svelte-preprocess-budoux/assets/1560508/03fd68d9-58fc-445b-8186-a42f22114ae2)
## 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' });
```