Manage Static Assets
Phoenix takes a hands-off approach to your asset pipeline. This lets you build and bundle your JavaScript, CSS, images, fonts, and other assets the way that you want to. It would be a bit cumbersome if there wasn’t some way to manage assets out of the box, so the phx.new generator sets up a basic asset pipeline for you.
Phoenix 1.7 installs an esbuild-powered[78] asset pipeline. Esbuild is an asset bundler that’s extremely fast and doesn’t rely on external languages to be installed. It dramatically simplifies the development and deployment of assets when compared to Webpack-based pipelines.
The Phoenix generator also sets up Tailwind CSS[79] for you. Tailwind is a class-based CSS library that has become very popular. Tailwind ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access