Skip to content

sonyseng/svelte-webpack-template

Repository files navigation

Svelte 3 + Typescript + Webpack 5 Template

This is a project template for Svelte 3 apps using Webpack 5 and Typescript.

  • Svelte Loader w/ HMR, Svelte Preprocess, File loader, CSS loader, TS Loader
  • Jest test runner w/ Svelte Testing Library
  • Production mode. Optimized bundles with code splitting

You will need to have Node.js installed.

Quick start in Development mode

First..

npm install

Start Webpack-dev-server. Navigate to localhost:9000

npm start

npm scripts

Run unit tests

npm test

Run unit tests in watch mode

npm run test:watch

Compile development source code and copy into the public/build directory

npm run build:dev

Compile optimized source code and copy into the public/build directory

npm run build:prod

Manually clean the build directory

npm run clean

About

Svelte 3 + Typescript + Webpack 5

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published