How to Create 1 Bundle JS File (inline CSS, fonts, images, etc) #7714
-
Hi There, First off, thank you so much for Parcel JS! 👍 I have a project in React/Typescript and I'm trying to create 1 single JS bundle file (inline all CSS, Fonts, images, etc). Do you mind pointing me in the right direction on how I can do this. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Check out the docs for bundle inlining. You can use the bundle-text: scheme for the css and the data-url: scheme for the fonts. https://parceljs.org/features/bundle-inlining/ |
Beta Was this translation helpful? Give feedback.
-
Hey, do you mind sharing how you ended up solving this? Maybe I'm not understanding what this post (https://parceljs.org/features/bundle-inlining/) is suggesting, but I don't want to have to rewrite my CSS or image imports to include Is it possible to just take a regular React app, with CSS and Images, and bundle it into a single HTML file with everything inline? |
Beta Was this translation helpful? Give feedback.
Check out the docs for bundle inlining. You can use the bundle-text: scheme for the css and the data-url: scheme for the fonts. https://parceljs.org/features/bundle-inlining/