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 #98

Closed benbrignell closed 6 years ago

benbrignell commented 6 years ago

Summary for @hankchizljaw:

main.scss exists in _includes so I can inline it on all pages but it means every single page (which in total is about 200) has to be rebuilt when css changes are made. Build times are 20-30 seconds and occasionally the build runs twice (I think because sass compiles slightly out of sync and the include is seen as modified and the build runs again) which means it's a minute to preview a change.

When working on html/markdown changes an incremental build is a fraction of a second.

I'd like to be able to have some kind of dev mode which links to a css file instead of inlining it.


FYI I have tried:

sass:
  style: uncompressed

and it is actually 0.7s slower.