svelte-rollup

Svelte Rollup

A basic web application built with svelte and rollup.

svelte-rollup

A basic responsive application built with svelte and rollup.

npm install packages

  • rollup
  • svelte
  • rollup-plugin-svelte
  • @rollup/plugin-node-resolve
  • sirv-cli
  • rollup-plugin-livereload

command to build and run

npm run build compiles /src/main.js and dependencies and places output in /public/build/bundle.js

npm run dev same as build, but puts rollup in watch mode, and recompiles when a file is changed

npm run sirv runs the sirv web server at localhost:5000/index.html, and reloads the browser app when new compiled code appears in /public

TODO for Docker

solve the problem of creating volume, running rollup watch and sirv, and exposing port 5000. Do we need docker-compose? perhaps nginx?

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes