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

Vite · Config reference · all subjects

build options – library mode

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

build.lib type

build.lib is type { entry?: string | string[] | { [entryAlias: string]: string }, name?: string, formats?: ('es' | 'cjs' | 'umd' | 'iife')[], fileName?: string | ((format: ModuleFormat, entryName: string) => string), cssFileName?: string }.

build.lib example with fileName and cssFileName

Example of configuring build.lib with custom fileName and cssFileName: ```js import { defineConfig } from 'vite' export default defineConfig({ build: { lib: { entry: ['src/main.js'], fileName: (format, entryName) => `my-lib-${entryName}.${format}.js`, cssFileName: 'my-lib-style', }, }, }) ```

build.lib assetsInlineLimit behavior

When build.lib is specified, build.assetsInlineLimit is ignored and assets will always be inlined regardless of file size or being a Git LFS placeholder.

build.lib cssCodeSplit default

When build.lib is specified, build.cssCodeSplit defaults to false.

Give your agent this brain