svelte-preprocess Svelte Themes

Svelte Preprocess

Preprocessing scripts for svelte

@ctx-core/svelte-preprocess

Preprocessing scripts for svelte

Install

npm i @ctx-core/svelte-preprocess

Preprocess

// 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: {
        // ...
    },
}

Top categories

Loading Svelte Themes