Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: local development UnoCSS improvements #325

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

AriPerkkio
Copy link
Member

While working on #314 noticed that when adding new UnoCSS classes on packages/react, these classes would not be auto reloaded in packages/template development mode. Adding content.pipeline seems to fix this.

Also UnoCSS VSCode extension requires uno config to be present - let's add one in root of the monorepo.

Copy link

stackblitz bot commented Sep 11, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@AriPerkkio AriPerkkio changed the title chore: uno css improvements for local development chore: UnoCSS improvements for local development Sep 11, 2024
@AriPerkkio AriPerkkio changed the title chore: UnoCSS improvements for local development chore: local development UnoCSS improvements Sep 11, 2024
Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nice DX improvement here! Good job @AriPerkkio ! 🙌

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I've been using an uncommited config for just that 😅

Now that we have the defineConfig from the theme package, this is pretty nice 😎

Comment on lines +5 to +9
content: {
pipeline: {
include: '**',
},
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool trick! I never managed to get pipeline working, glad you found a way!

@Nemikolh Nemikolh merged commit 38df1f3 into stackblitz:main Sep 11, 2024
10 checks passed
@AriPerkkio AriPerkkio deleted the chore/local-dev-uno-css branch September 11, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants