diff --git a/README.md b/README.md index e4a93bd..9112133 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/_config.yml b/_config.yml index d8b0ecc..874d581 100644 --- a/_config.yml +++ b/_config.yml @@ -12,3 +12,4 @@ exclude: - README.md - src - tailwind.config.js + - netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..2b658cf --- /dev/null +++ b/netlify.toml @@ -0,0 +1,3 @@ +[build] + command = "npm run build" + publish = "_site/"