-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Build Single File for Distribution #1452
Comments
Isn't |
I was under the impression that |
No, by default it bundles everything into a single JS file. You do have an option of code splitting (by calling |
When there is a custom stylesheet specified in the index.html file, it's not included in the bundle built for production. Just import it from the |
I'm building a small app that will need to act as a library for a client. They will need to pull a single JS and CSS file from me and then initialize my code using their own JS files. Therefore, I need to find a way to build my project into a single JS and a single CSS file. Is there a way to build with this in mind?
Example:
index.html
index.js
I am not worried about giving these files pleasant names, I am only concerned with building them into single files or automating the pulling of the other files of a build from my server.
The text was updated successfully, but these errors were encountered: