benbrignell / principles.design

An open source collection of design principles and methods.
https://principles.design
MIT License
1.28k stars 196 forks source link

Improve build times by adding node-sass and dev config setup #99

Closed Andy-set-studio closed 6 years ago

Andy-set-studio commented 6 years ago

I've setup your Sass to be compiled with a couple of npm scripts. I've also added a setup so that you can have a _config_dev.yml that will override values in your _config.yml for you.

Getting started

# Current site environment
environment: dev

Running Sass

Your main.scss file now lives in your _sass folder. To run Sass, you have 3 commands available.

Jekyll commands

To run your site in dev mode, use this command:

bundle exec jekyll serve --watch --config "_config.yml,_config_dev.yml"

It's a bit of a mouthful, so you might want to create an alias or something.

If you run the standard jekyll command, it'll run off your _config.yml file. The same if GitHub pages runs a build.

This PR resolves #98