svelte-preprocess-pug Svelte Themes

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

Loading Svelte Themes