Build tasks Pro
What the Tailwind CSS, Sass, CSS and JavaScript build tasks support, and where packages come from.
Each task in .temper/build.json has a type. See Asset builds for the file format.
Tailwind CSS#
"type": "tailwind" builds with Tailwind CSS v4.
- Your input file can use
@import "tailwindcss",@source,@utilityand@theme. - Class names are collected from the project's files. Paths in
.gitignoreare skipped unless an@sourcenames them. @importof your own CSS files works. Other packages load from npm as plain CSS.- Tailwind plugins and JavaScript config files (
tailwind.config.js) aren't supported in browser builds.
Temper treats a CSS file as a Tailwind entry when it has @import "tailwindcss" or @tailwind base, components or utilities.
Sass#
"type": "sass" compiles SCSS and indented Sass with Dart Sass, including partials and @use. When Set up finds Sass files, each one that isn't a partial (a name not starting with _) gets a task, with its output in a matching css/ folder.
CSS#
"type": "css" inlines @imports and minifies plain CSS.
JavaScript#
"type": "js" bundles with esbuild. It handles JavaScript, JSX, TypeScript and JSON.
- npm packages load from esm.sh, at the versions in the project's
package.json. Your browser needs to reach esm.sh while it builds. - CSS imported from JavaScript is written to a
.cssfile next to the output, such asdist/assets/app.cssfordist/assets/app.js.
Images and fonts#
In CSS and JavaScript, paths to images and fonts are rewritten so they still work from the output folder. The files themselves stay where they are.
Vite manifests#
Set manifest in the config to write a Vite-style manifest. Themes that load their assets through one, such as TailPress, then find the built files. When Set up reads a vite.config.* with manifest: true, it sets this for you, in the build's output folder.