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)
- dist/autoProcess.d.ts
- dist/index.d.ts
- dist/processors/babel.d.ts
- dist/processors/coffeescript.d.ts
- dist/processors/globalStyle.d.ts
- dist/processors/less.d.ts
- dist/processors/postcss.d.ts
- dist/processors/pug.d.ts
- dist/processors/replace.d.ts
- dist/processors/scss.d.ts
- dist/processors/stylus.d.ts
- dist/processors/typescript.d.ts
Dependencies (0)
No dependencies.
Dev Dependencies (27)
- @babel/core
- @babel/preset-env
- @commitlint/cli
- @commitlint/config-conventional
- @kiwi/eslint-config
- @kiwi/prettier-config
- @types/babel__core
- @types/node
- @types/pug
- @types/stylus
- autoprefixer
- babel-minify
- coffeescript
- conventional-changelog-cli
- eslint
- less
- postcss
- postcss-easy-import
- postcss-load-config
- prettier
- pug
- sass
- stylus
- sugarss
- svelte
- typescript
- vitest
Peer Dependencies (11)
Badge
To add a badge like this oneto 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>
- Updated .
Package analyzed in 3769 ms. - Missing or incorrect documentation? Open an issue for this package.