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

Compile SCSS with Webpack #54

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

olivierobert
Copy link
Member

@olivierobert olivierobert commented Jun 5, 2021

What happened

Replace the SCSS compilation from Jekyll with Webpack to have a modern frontend development workflow with postcss. This is a requirement to use Tailwind and to use advanced CSS features.

I also took the opportunity to upgrade all the dependencies to the latest versions 馃挭

TODOs:

  • Add purge css to remove unused CSS (required for Tailwind)
  • Add browsersync to refresh the web page automatically when changes are made

Insight

While Jekyll has a plugin for postcss, it has a major downside. It only can process one stylesheet 馃槗 It means that it only processes the file _sass/application.scss. All subdirectories _sass/base/, _sass/components/, etc. are not processed. Second, the plugin is only maintained by one person so updates are scarce. Overall, it's better to rely on the JS ecosystem for this.

Dependency issues:

Proof Of Work

image

@olivierobert olivierobert added this to the 2.0.0 milestone Jun 5, 2021
@olivierobert olivierobert self-assigned this Jun 5, 2021
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