sapper-netlify-jamstack-starter icon indicating copy to clipboard operation
sapper-netlify-jamstack-starter copied to clipboard

Feature Request: Rollup version

Open PaulHax opened this issue 5 years ago • 1 comments

Thanks for this. Found via google search -> your blog. Would be nice to have a version based on the Rollup Sapper template as that seems better supported by the Svelte folks right now.

PaulHax avatar Jun 08 '19 20:06 PaulHax

I also started with the rollup template and then worked in some of the ideas from this repo. If you've already got a project started with rollup, there's absolutely no difference between the rollup.config.js in this repo and the one in the sapper starter. So getting the lamba stuff to work is just a matter of making the same changes to the rollup version:

  • Install cross-env and netlify-lambda as dependencies
  • Install http-proxy-middleware and npm-run-all as devDependencies
  • Update dev/build scripts in package.json
  • Add netlify.toml
  • Update src/server.js
  • Add functions/hello.js
  • Update src/routes/index.svelte

Aias avatar Jul 18 '19 20:07 Aias