3. Build and watch
npx emily-css build npx emily-css watch npx emily-css watch --prod
Use build in CI/release, and watch in local development. Use watch --prod only when you explicitly want purge + minify on each file change.
Install emilyCSS, wire outputs into your app, and verify everything is generated correctly.
Start by installing the package and creating a baseline config. The init command is safe to run in an existing project and gives you a predictable starting point.
npm install emily-css npx emily-css init
Keep a stable CSS output path and enable manifest/IntelliSense when you need machine-readable tooling data. New init projects commonly use the same path for both dev and production CSS.
{
"output": {
"css": "dist/emily.css",
"fullCss": "dist/emily.css"
},
"manifest": true,
"intellisense": {
"enabled": true,
"output": "dist/emily.intellisense.json"
}
}npx emily-css build npx emily-css watch npx emily-css watch --prod
Use build in CI/release, and watch in local development. Use watch --prod only when you explicitly want purge + minify on each file change.
export default defineNuxtConfig({
app: {
head: {
link: [{ rel: 'stylesheet', href: '/dist/emily.css' }]
}
}
}) If you are not using Nuxt, add the same file with a normal <link> tag in your app shell.
output.css exists and changes when token/config inputs change.output.fullCss updates when running watch mode.purge.sourceGlobs.Next step
Continue to Configuration for a full reference of every config key.