-
Notifications
You must be signed in to change notification settings - Fork 84
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
Theme Size and Production Steps for Local to Live domain #566
Comments
Hey @liquiddev03, to reduce your theme's size for production, you'll need to prepare your code for deployment by running the command After running this command, make sure to exclude the For more detailed examples on setting up Flynt deployments, you can refer to this article: |
Yes I build but still its going to 220MB wihtout node_modules |
If the project folder is still that big, I suggest to analyse the size of each of your subfolders to understand where the overall size is coming from. |
I reviewed Vendor folder size is very large, does we can reduce any library on it. because I have 30 sites if I will use this theme its goes more then size on server without any used resources |
The vendor folder stores all the Composer dependencies. As you add more dependencies, this folder will naturally increase in size. For reference, the Flynt theme's vendor folder is below 15 MB when initially downloaded. You can further decrease the folder size by excluding dev dependencies before building: The folder size should then come down to under 3 MB. |
Got it, could you please let me know how we can define the dependencies on install time so require file we can install using composer because in general installation its coming more then packages there. I just followed your step in theme installation. |
No worries, let’s clear this up. You don’t need to define any dependencies manually when installing the Flynt theme. The process is pretty straightforward. Here’s a step-by-step guide to make it easier:
Alternatively, if you prefer not to deal with the installation process, you can download the latest prebuilt version of the theme from the releases page. For example, you can download the This should give you a much smaller and ready-to-use theme. |
Hi @steffenbew @liquiddev03 @timohubois To streamline our development process for the Flynt theme, you can enable the Bitbucket Pipeline. This will automate our CI/CD, ensuring that the node_modules and vendor files are handled correctly without manual intervention. I've attached the Bitbucket Pipeline configuration code, which includes steps to download the necessary node_modules and synchronize with the server for deployment. This setup will help maintain efficiency and consistency in our development workflow. If you have any questions or need assistance with the configuration, feel free to reach out! pipelines:
|
Hello Guys,
I have installed the theme in my local environment using composer and node modules but once I build the theme for production its size still there near 300 MB.
How I can decrease the theme size because so large I need it in minor MB 10 or 12 MB if possible.
If possible then make video for simple installation to finish at end of upload on live domain.
Thank you.
The text was updated successfully, but these errors were encountered: