new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Bun · Bundler · all subjects

css/overview

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

CSS bundler built-in features list

Bun's bundler has built-in support for CSS with the following features: (1) Transpiling modern/future features to work on all browsers (including vendor prefixing), (2) Minification, (3) CSS Modules, (4) Tailwind (through a native bundler plugin).

CSS @import bundling

Bun's CSS parser is a CSS bundler that can combine CSS files using @import statements. When you use @import in CSS files, Bun bundles them together into the final output.

Asset path rewriting in CSS

When Bun encounters a url() reference to a local asset like url("./logo.png") in CSS, it copies the asset to the output directory and rewrites the path to include a content hash, for example url("./logo-[ABC123].png").

Importing CSS in JavaScript

To associate CSS files with a JavaScript file, import the CSS file from the JavaScript file: `import "./styles.css";`. This generates a .css file and .js file in the output directory for each entry point. If the same CSS file is imported from multiple JavaScript files, it is only included once in the output CSS file.

CSS file bundling

CSS files (.css) are bundled together into a single .css file in the output directory.

Give your agent this brain