-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allow Vite/Rollup to build output files specified in the input entry points #73
Comments
Currently any Example:
Would this solve your use case? |
does not work for me... only one bundled css file is created |
@saiballo never said it should work, it was a possible fix we could implement. The question rather was, what the goal is. But it's highly likely you want to use a custom setup, with such specialized needs. |
I'm trying to replace codekit with vite and I need to create N files and not only one bundled file |
Having migrated recently from the Slinkity plugin to 11ty-vite, Slinkity would adhere to Rollups entry points specified in the Rollup Options within 'input'.
More on what the input array does here... Rollup Config Options
Currently, the 11ty-vite plugin merges all the CSS files used regardless of mapping out entries using the input config, I'm assuming that the HTML files (with the includes to the css files) are used as the main entry points, thus ignoring anything within the Rollup options input array.
My .elevent.js file looks like ...
and when doing a final build I get the following files in my dist folder. I get just the 1 concatenated file included within a HTML file.
Obviously I understand the reasons for this, only shipping what the app/website actually needs is one of vites features. However outputting the chucks as needed allows the chunks to be used independently (say on codepen/stackblitz).
Expected output should be:
Is there a fix for this, or is the approach in my config incorrect?
Thanks in advance
The text was updated successfully, but these errors were encountered: