Template for building basic Svelte applications with webpack
Clone or download
Rich-Harris Merge pull request #11 from JordanShurmer/master
Update all dependencies and replace webpack-serve
Latest commit 5cdbfcc Oct 31, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
public initial commit Dec 11, 2017
src update deps, move to v2 Apr 19, 2018
.gitignore remove yarn.lock from repo Apr 19, 2018
README.md fix readme Dec 11, 2017
package.json fix content-base of 'npm run dev' Oct 19, 2018
webpack.config.js Merge branch 'master' of github.com:sveltejs/template-webpack May 14, 2018


svelte app

This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template-webpack.

To create a new project based on this template using degit:

npm install -g degit # you only need to do this once

degit sveltejs/template-webpack svelte-app
cd svelte-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd svelte-app
npm install

...then start webpack:

npm run dev

Navigate to localhost:8080. You should see your app running. Edit a component file in src, save it, and the page should reload with your changes.

Deploying to the web

With now

Install now if you haven't already:

npm install -g now

Then, from within your project folder:


As an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.

With surge

Install surge if you haven't already:

npm install -g surge

Then, from within your project folder:

npm run build
surge public