Custom fomantic-ui build #4516

Closed
opened 2025-11-02 05:53:16 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @silverwind on GitHub (Dec 18, 2019).

As mentioned in https://github.com/go-gitea/gitea/pull/9374#issuecomment-566256122, the version of fomantic-ui we use is very big and includes around 30 modules of which we probably only use a handful, so I'd estimate we could drop the size of it by at least half if not more.

Proposing to add a custom build process that adds it as a npm dependency and a make fomantic-ui target to build it.

As a first step, we can commit the resulting files in the vendor directory, but I'd like to eventually have them integrated in the webpack bundle, but that could prove a bit challenging as it needs the right webpack loaders for the fonts etc.

Originally created by @silverwind on GitHub (Dec 18, 2019). As mentioned in https://github.com/go-gitea/gitea/pull/9374#issuecomment-566256122, the version of `fomantic-ui` we use is very big and includes around 30 modules of which we probably only use a handful, so I'd estimate we could drop the size of it by at least half if not more. Proposing to add a custom build process that adds it as a npm dependency and a `make fomantic-ui` target to build it. As a first step, we can commit the resulting files in the `vendor` directory, but I'd like to eventually have them integrated in the webpack bundle, but that could prove a bit challenging as it needs the right webpack loaders for the fonts etc.
GiteaMirror added the topic/uitopic/build labels 2025-11-02 05:53:16 -06:00
Author
Owner

@silverwind commented on GitHub (Jan 21, 2020):

Fixed with https://github.com/go-gitea/gitea/pull/9561

@silverwind commented on GitHub (Jan 21, 2020): Fixed with https://github.com/go-gitea/gitea/pull/9561
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4516