metalsmith-svelte
Svelte plugin for Metalsmith
Installation
npm install metalsmith-svelte
Usage
CLI
Add the metalsmith-svelte
field to your metalsmith.json
.
"plugins": "metalsmith-svelte": "name": 'MyComponent' "sourceMap": "inline"
API
const Metalsmith = ;const svelte = ; './source';
Options
All Svelte compiler options are available except for filename
that will be automatically set.
In addition the following option is supported:
options.sourceMap
Value: true
, false
or 'inline'
Default: false
true
generates a separate source map file with.map
extension, for exmapleindex.js.map
along withindex.js
.'inline'
appends an inline source map to the transformed file.
License
Copyright (c) 2016 - 2017 Shinnosuke Watanabe
Licensed under the MIT License.