Compiles and hot-reloads for development
Compiles and minifies for production
See Configuration Reference.
Deploying your site to Netlify (free plan)
- Create a free account in Netlify
- Install netlify CLI npm install
netlify-cli -g
- Login to netlify from your terminal
netlify login
- Connect your github account.
- In
netlify.toml
specify the build command and distribution directory.
- Once you push your project to git, Netlify will build from master branch by default.
- Your site will be deployed on the subdomain of your choosing by default.
- You can also specify your custom domain.
- Netlify will also install LetsEncrypt certs for you.