mitchellhanberg.com

How I Handle Static Assets in my Phoenix apps (opens in new tab)

From Mitchell Hanberg's Blog: I no longer use Webpack. Now I use esbuild, postcss-cli, and cpx. - esbuild bundles and transpiles my JavaScript files extremely fast. - postcss-cli processes my CSS and can run the TailwindCSS JIT mode without any problems. - cpx copies other static files from the `assets` directory into the `priv` directory. Running each of these tools in development is just as easy as running Webpack. ## esbuild esbuild is part of the newest generation of JavaScript tooling. I...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help