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

fix: Extra CSS files generated #777

Merged
merged 4 commits into from
May 27, 2021
Merged

fix: Extra CSS files generated #777

merged 4 commits into from
May 27, 2021

Conversation

rschristian
Copy link
Collaborator

Summary

Fixes #776

Description

A bug with #769 meant that for each JS file output format (excluding UMD) a matching CSS file would be generated, i.e., index.modern.css and index.module.css (not a CSS module).

I corrected this by restoring the old logic used, which was relying on writeMeta.

@changeset-bot
Copy link

changeset-bot bot commented Jan 6, 2021

🦋 Changeset detected

Latest commit: 025c5c8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
microbundle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@developit
Copy link
Owner

Seems reasonable to me - this doesn't create any incorrect references to the CSS files right? I don't think we provide a way to get the filename so my guess is that it's fine.

@rschristian
Copy link
Collaborator Author

I don't believe there are any references, no.

@developit developit merged commit 6f1a20f into developit:master May 27, 2021
@preact-bot preact-bot mentioned this pull request May 27, 2021
@rschristian rschristian deleted the fix/cssFileGen branch May 31, 2021 18:30
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.

Bug: Microbundle generates 'x.modern.css' and 'x.module.css' files
2 participants