svelte-preprocess-pug

Svelte Preprocess Pug

Svelte rollup preprocessor for Pug

svelte-preprocess-scss

Svelte rollup preprocessor for Pug

Usage

// rollup.config.js
import svelte from 'rollup-plugin-svelte';
import pugConverter from '../where_plugin_placed.js';
...

export default {
  ...
  plugins: [
    ...
    svelte({
      preprocess: {
        markup: pugConverter(),
      },
    }),
  ],
};

Using in .svelte

<template lang="pug">
.wrapper
    h1 {Hello}
</template>

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes