This repository has been archived on 2020-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
2016-07-21 17:35:32 +00:00
|
|
|
# Hugo with PostCSS and Babel
|
2016-07-05 18:38:18 +00:00
|
|
|
|
2016-07-21 17:35:32 +00:00
|
|
|
This is a boilerplate for using Hugo as a static site generator and Gulp + Weback as the
|
2016-07-05 18:38:18 +00:00
|
|
|
asset pipeline.
|
|
|
|
|
|
|
|
It's setup to use post-css and babel for CSS and JavaScript.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Clone this repository and run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm install
|
|
|
|
npm start
|
|
|
|
```
|
|
|
|
|
2016-07-21 17:35:32 +00:00
|
|
|
Then visit http://localhost:3000/
|
2016-07-05 18:38:18 +00:00
|
|
|
|
|
|
|
To build your static output, use:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
|
|
|
## Deploying to netlify
|
|
|
|
|
|
|
|
Push your clone to your own GitHub repo, then start a new netlify project, pick
|
|
|
|
your repository and configure it like this:
|
|
|
|
|
|
|
|
* **Build Command:** npm run build
|
|
|
|
* **Directory:** dist
|
|
|
|
|
|
|
|
Now netlify will build and deploy your site whenever you push to git.
|