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