Experimenting with Svelte3 Beta and learning it as I go.
- Install latest Node 10:
nvm install 10
- Install Yarn:
npm i yarn -g
- Install http-server:
npm i http-server -g
- Run
yarn
inside the project folder
- Run
npm start
in the project folder to start Webpack watch. Then open another terminal tab and dohttp-server dist -c-1
. Then go to8080
. - Update
src/index.htm
as the main template. The css and the js links will automatically be added todist/index.html
. Note thathtm
was used because Svelte was getting confused... - Run
npm run lint
to lint the src folder.
- Run
npm run build
to minify js and css files todist/
. To gzip them, install gzip withbrew install gzip
and donpm run gzip
to gzip css and js files indist
.