gulp-svelte
A gulp plugin to compile Svelte templates to JavaScript
Installation
npm install --save-dev gulp-svelte
API
const gulpSvelte = ;
gulpSvelte([options])
options: Object
(options for Svelte compiler API and preprocess
option)
Return: stream.Transform
const dest src task = ;const gulpSvelte = ; ;
Note:
format
option doesn't support legacy JavaScript formatsamd
,iife
andumd
.onerror
option is not supported.- If
css
option receivesfalse
, it also emits an extracted CSS as a separateVinyl
object with a.css
file extension.
const dest src task = ;const gulpSvelte = ; ;
options.preprocess
Type: Object
Modify contents with svelte.preprocess()
passing this option to it before compiling the template.
const dest src task = ;const gulpSvelte = ; ;
License
ISC License © 2017 - 2018 Shinnosuke Watanabe