Task Definitions: None
Template Definitions: 'svelte'
Batcher Definitions: None
Builds a Svelte template into a JS and CSS file.
auto-install
(Boolean, default:true
): Whether to automatically installsvelte
if not present (using the npm extension). The global npm extensionauto-install
option will take precedence here if not otherwise set.source-maps
(Boolean, default:true
): Whether to output source maps.svelte-config
(String | Boolean, default:false
): Custom Svelte configuration file to use, when set totrue
defaults tosvelte-config.js
.svelte-preprocess
(Boolean, default:true
for nosvelte-config
,false
whensvelte-config
is set): Automatically applies the svelte-preprocess default Svelte preprocessor.
chompfile.toml
version = 0.1
extensions = ['[email protected]:svelte']
[[task]]
name = 'build:svelte'
target = 'lib/#.js'
dep = 'src/#.svelte'
template = 'svelte'
When ejecting the template, the Svelte API JS wrapper task will be output without auto-installation.
This extension is currently very much a prototype. It would be amazing if someone with Svelte experience is interested in improving it.