The purpose of this gist is to show how Sanic can be used as a development server for a frontend JS framework. In this example we are running a Svelte app with rollup
, but the same idea could be applied to any other frameworks JS build tools.
Run with:
sanic path.to:app -d -R ./path/to/public