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

a possible way to set the name of the bundled css file in dist folder #1018

Open
Mood-al opened this issue Jan 14, 2023 · 1 comment
Open

Comments

@Mood-al
Copy link

Mood-al commented Jan 14, 2023

Hey, i want to change the name of the css file that got bundled in dist folder from index.css to any name i want.
like here in this image i want to change the name of the bundled css file to rts.css.
can I do this?
Screenshot 2023-01-14 at 02 11 18

@rschristian
Copy link
Collaborator

The name matches your output JS, I believe. If you want to name it something else you'll need to use a post-build script:

"build": "microbundle ... && mv dist/index.css dist/rts.css"

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

No branches or pull requests

2 participants