Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a more modular build and compile process #674

Merged
merged 8 commits into from Oct 11, 2018
Merged

Conversation

thisisdano
Copy link
Member

@thisisdano thisisdano commented Oct 11, 2018

馃攳 Preview


This PR modularizes the site styles into component pieces:

  • fonts
  • layout-grid
  • components
  • utilities
  • custom sass

Each piece is compiled separately, then combined in production builds into one minimized file.
Since most changes to custom stylesheets don't require rebuilding all the modules, in development, the watch script will only rebuild the necessary module when changes are made. This speeds up the build of most changes by about 10x.

Locally, the site uses separate css package modules, but when building on Federalist it will use the single, combined css file 鈥斅爊ow named styles.css

@thisisdano thisisdano merged commit 05bca22 into v2 Oct 11, 2018
@thisisdano thisisdano deleted the dw-modular-build branch October 11, 2018 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant