Episodes
brian PRO said 6 months ago on esbuild for Rails :
How would you load icon fonts with esbuild. Create a loader or pull the css into the asset pipeline?

Trying to pull in fontawesome css:

JS:
import "@fortawesome/fontawesome-free/js/all";
import "@fortawesome/fontawesome-free/css/all.css";  // results in no loader configured for .woff, .eot etc. 

CSS Bundling
@use "@fortawesome/fontawesome-free/css/all.css" as *;   // no route matches /webfonts



benkoshy said 3 months ago on esbuild for Rails :
When using es-build to manage bootstrap, there are two components involved:

(1) bootstrap javascript
(2) bootstrap styling

does it make sense to use cssbundling-rails https://github.com/rails/cssbundling-rails to manage the css portions of bootstrap, and use jsbundling-rails to manage the js components via es-build?

was curious to know everyone's thoughts on this approach?

David Kimura PRO said 3 months ago on esbuild for Rails :
That's the approach I take with esbuild and cssbundling. You can check out https://www.github.com/driftingruby/template for what I use with new episodes. This uses jsbundling and cssbundling and installs bootstrap.

Login to Comment