1
1
Fork 0
hugo-svelte/README.md
2019-10-03 18:07:50 -04:00

40 lines
859 B
Markdown

# Hugo-Svelte app
This is a project template for [Svelte](https://svelte.dev) and [Hugo](https://gohugo.io) apps. It lives at https://github.com/datwood/hugo-svelte.
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
```bash
npx degit datwood/hugo-svelte hugo-svelte
cd hugo-svelte
```
*Note that you will need to have [Node.js](https://nodejs.org) installed.*
****
## Get started
Install the dependencies...
```bash
cd svelte-app
npm install
```
...then start [Rollup](https://rollupjs.org):
```bash
npm run dev
```
Navigate to [localhost:1313](http://localhost:1313). You should see your app running. Edit a component file in `svelte` and save it. Livereload is built-in.
## Building
From within your project folder:
```bash
npm run build
```
You will find your website files inside `public/`.