1
Fork 0
Rollup plugin to combine multi-file Svelte components
Find a file
2017-11-04 09:53:00 -04:00
src allow configuring extension for main components 2017-11-04 09:53:00 -04:00
.prettierrc first version 2017-11-02 19:11:12 -04:00
LICENSE add readme 2017-11-02 19:18:26 -04:00
README.md add todo 2017-11-03 01:29:59 -04:00

Svelte-Combiner

A simple Rollup plugin to allow the script and stylesheet portions of a Svelte component to be stored in separate files.

This expects Svelte components to have an .html extension, the <script>s to have the same filename with a .js extension, and the <style>s to have the same filename with a .css extension. In your array of Rollup plugins, run this plugin before the regular svelte plugin.

TODO:

  • allow file extension configuration for main component source file (.html vs. .svelte vs. whatever)
  • support external .css without external .js (maybe?)

License

Copyright (c) 2017 Conduitry