microbundle icon indicating copy to clipboard operation
microbundle copied to clipboard

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

Open Mood-al opened this issue 2 years ago • 1 comments

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

Mood-al avatar Jan 14 '23 01:01 Mood-al

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"

rschristian avatar Jan 14 '23 14:01 rschristian