1
Fork 0
Rollup plugin to combine multi-file Svelte components
Find a file
2017-11-03 01:28:12 -04:00
src allow styles to be specified in separate .css file 2017-11-03 01:28:12 -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 readme 2017-11-02 19:18:26 -04:00

Svelte-Combiner

A simple Rollup plugin to allow the script portion of Svelte components to be stored in a separate file.

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

TODO:

  • allow CSS to be in external file
  • allow file extension configuration for main component source file (.html vs. .svelte vs. whatever)

License

Copyright (c) 2017 Conduitry