Skip to content

sveltetools/svelte-component-budget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SvelteJS preprocessor to control component's size (loc).

NPM version NPM downloads

Install

npm i svelte-component-budget --save-dev
yarn add svelte-component-budget

Usage

import componentBudget from 'svelte-component-budget';

module.exports = {
    compilerOptions: {
     ...
    },
    preprocess: [
        componentBudget(),
    ]
};

Options

  • budget - line of code budget for Svelte components (default: 200).
  • include - array of regexps to match with filenames (default: []).
  • exclude - array of regexps to match with filenames (default: []).

License

MIT © PaulMaly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published