ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

purge unused css in builds #24

Closed ax-vasquez closed 3 years ago

ax-vasquez commented 3 years ago

Description

Tailwind is massive by design (think of it like a box of LEGOs, but for CSS classes). This PR simply specifies the pattern to purge CSS from.

I'm sure there is more I could do here later, but for now, this seems good.

Former dev dependencies

Normally, cypress and start-server-and-test would be installed as a devDependency. However, this breaks the GitHub Action for whatever reason; GH Actions appear to ignore dev dependencies.

It seems the only way to work around this is to install the dependency as a normal one instead of a dev one.

ax-vasquez commented 3 years ago

Appear that the Cypress GitHub Action has some issues with caching and dependency installation, most likely a result of how the Gatsby site has to be tested. Going to try CircleCI instead.