mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 19:25:10 +00:00
15 lines
549 B
Markdown
15 lines
549 B
Markdown
---
|
|
title: Building
|
|
---
|
|
|
|
Up until now we've been using `sapper dev` to build our application and run a development server. But when it comes to production, we want to create a self-contained optimized build.
|
|
|
|
### sapper build
|
|
|
|
This command packages up your application into the `__sapper__/build` directory. (You can change this to a custom directory, as well as controlling various other options — do `sapper build --help` for more information.)
|
|
|
|
The output is a Node app that you can run from the project root:
|
|
|
|
```bash
|
|
node __sapper__/build
|
|
``` |