degit
)npm i
)npm i
)public/modules
.svelte-preprocess
. Postinstall message from svelte-preprocess: echo "[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: node-sass/sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc..."
npm i -D node-sass
public/index.html
has the proper css and js import statementssvelte.config.js
preprocess includePaths match the location of _material_theme.scss
rollup.config.js
properly imports the preprocess from svelte.config.js
_material_theme.scss
(materialify is hard coded to that name!)Dockerfile
runs a multistage build:npm run bulid
(public
folder) into a minimal linux distro to run the nginx web server.nginx-spa.conf
, configured for an SPA, is copied into the container. You should review and refine this file to suit your needs.docker build -t johnknapp/spa-template .
Change the tag name as needed.docker run --rm -p80:8080 johnknapp/spa-template
. (The --rm flag removes the container upon exit.)docker help
docker image ls
docker image prune
docker ps -a
docker exec -it <cid> /bin/sh
(container id)docker container logs -f <cid>
docker container prune