Fix CSS extraction for consuming Vite projects #1
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
chocbite/ts-lib-base!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/load-base-scss-automatically"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
base.scssstyles were not appearing in the build CSS output of consuming projects. The prior fix usedsassPlugin({ type: "style" })which injects CSS at runtime viadocument.head.appendChild— invisible to Vite's CSS extraction pipeline.tsup.config.ts: Reverted sassPlugin to default type ("css") to emit a properdist/index.css, and addedbanner: { js: "import './index.css';" }so consuming bundlers discover and extract the CSSpackage.json: Restoredstylefield in top-level andexportsmapBuild output now contains a standalone
index.csswith the styles, andindex.jsopens with the CSS import:💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.