[PR #27] [CLOSED] Add tailwind config to remove unused CSS #51

Closed
opened 2026-02-27 09:12:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/maelstrom-cms/odin/pull/27
Author: @zaherg
Created: 5/27/2020
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • 3759878 adding tailwind config to purge non used classes on production
  • 9d96baa adding node_modules directory too

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

tailwind.config.js (+10 -0)

📄 Description

Using the config we can automatically remove unused css from the generated css file on production and reduce the size from 2mb to ~500Kib

Before:

/css/maelstrom.css  2.04 MiB       0  [emitted]  [big]  /js/maelstrom

After:

/css/maelstrom.css   496 KiB       0  [emitted]  [big]  /js/maelstrom

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maelstrom-cms/odin/pull/27 **Author:** [@zaherg](https://github.com/zaherg) **Created:** 5/27/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`3759878`](https://github.com/maelstrom-cms/odin/commit/3759878c41560719cb665258a6cddd10cfcd0cab) adding tailwind config to purge non used classes on production - [`9d96baa`](https://github.com/maelstrom-cms/odin/commit/9d96baaa4a2ecff5ac0303e63a6331395d951ded) adding node_modules directory too ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `tailwind.config.js` (+10 -0) </details> ### 📄 Description Using the config we can automatically remove unused css from the generated css file on production and reduce the size from 2mb to ~500Kib **Before**: ``` /css/maelstrom.css 2.04 MiB 0 [emitted] [big] /js/maelstrom ``` **After**: ``` /css/maelstrom.css 496 KiB 0 [emitted] [big] /js/maelstrom ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 09:12:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/odin-maelstrom-cms#51
No description provided.