Add netlify.toml file.
It makes deploying extremely easy. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
1845ff926a
commit
a539fa51ed
|
@ -65,11 +65,8 @@ to `/dist/css/{filename}.css`. Import statements will be resolved as part of the
|
||||||
|
|
||||||
## Deploying to netlify
|
## Deploying to netlify
|
||||||
|
|
||||||
Push your clone to your own GitHub repo, then start a new Netlify project, pick
|
- Push your clone to your own GitHub repository.
|
||||||
your repository and configure it like this:
|
- [Create a new site on Netlify](https://app.netlify.com/start) and link the repository.
|
||||||
|
|
||||||
* **Build Command:** npm run build
|
|
||||||
* **Directory:** dist
|
|
||||||
|
|
||||||
Now netlify will build and deploy your site whenever you push to git.
|
Now netlify will build and deploy your site whenever you push to git.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[build]
|
||||||
|
command = "npm run build"
|
||||||
|
publish = "dist"
|
Reference in New Issue