Added netlify.toml to override build command (#90)

This commit is contained in:
Alejandro Figueroa 2020-05-08 21:22:52 -05:00 committed by GitHub
parent bb531dad64
commit a0c556f64a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,7 @@ A starter kit for using [Tailwind](https://tailwindcss.com) with [Jekyll](https:
## Deploy
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/taylorbryant/jekyll-starter-tailwind)
Note: By default, Netlify uses `jekyll build` as the build command. Make sure to change this to `npm run build` or `npm run build:production`.
Note: By default, Netlify uses `jekyll build` as the build command. The included `netlify.toml` file will override it to use `npm run build`.
## License
[MIT](https://github.com/taylorbryant/jekyll-starter-tailwind/blob/master/LICENSE.md)

View File

@ -12,3 +12,4 @@ exclude:
- README.md
- src
- tailwind.config.js
- netlify.toml

3
netlify.toml Normal file
View File

@ -0,0 +1,3 @@
[build]
command = "npm run build"
publish = "_site/"