svelte-preprocess

  • Version 6.0.3
  • Published
  • 97.2 kB
  • No dependencies
  • MIT license

Install

npm i svelte-preprocess
yarn add svelte-preprocess
pnpm add svelte-preprocess

Overview

A Svelte preprocessor wrapper with baked-in support for commonly used preprocessors

Index

Variables

variable _default

const _default: ({
aliases,
markupTagName,
sourceMap,
...rest
}?: AutoPreprocessOptions) => PreprocessorGroup;
  • Deprecated

    Use the named export instead: import { sveltePreprocess } from 'svelte-preprocess'

Functions

function babel

babel: (options?: Options.Babel) => PreprocessorGroup;

    function coffeescript

    coffeescript: (options?: Options.Coffeescript) => PreprocessorGroup;

      function globalStyle

      globalStyle: () => PreprocessorGroup;

        function less

        less: (options?: Options.Less) => PreprocessorGroup;

          function postcss

          postcss: (options?: Options.Postcss) => PreprocessorGroup;
          • Adapted from https://github.com/TehShrike/svelte-preprocess-postcss

          function pug

          pug: (options?: Options.Pug) => PreprocessorGroup;

            function replace

            replace: (options: Options.Replace) => PreprocessorGroup;

              function sass

              sass: (options?: Options.Sass) => PreprocessorGroup;

                function scss

                scss: (options?: Options.Sass) => PreprocessorGroup;

                  function stylus

                  stylus: (options?: Options.Stylus) => PreprocessorGroup;

                    function sveltePreprocess

                    sveltePreprocess: ({
                    aliases,
                    markupTagName,
                    sourceMap,
                    ...rest
                    }?: AutoPreprocessOptions) => PreprocessorGroup;

                      function typescript

                      typescript: (options?: Options.Typescript) => PreprocessorGroup;

                        Package Files (12)

                        Dependencies (0)

                        No dependencies.

                        Dev Dependencies (27)

                        Peer Dependencies (11)

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/svelte-preprocess.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/svelte-preprocess)
                        • HTML
                          <a href="https://www.jsdocs.io/package/svelte-preprocess"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>