Experimenting with Svelte3 Beta and learning it as I go.
nvm install 10
npm i yarn -g
npm i http-server -g
yarn
inside the project foldernpm start
in the project folder to start Webpack watch. Then open another terminal tab and do http-server dist -c-1
. Then go to 8080
.src/index.htm
as the main template. The css and the js links will automatically be added to dist/index.html
. Note that htm
was used because Svelte was getting confused...npm run lint
to lint the src folder.npm run build
to minify js and css files to dist/
. To gzip them, install gzip with brew install gzip
and do npm run gzip
to gzip css and js files in dist
.