How to half the size of your Spryker vendor directory
I had a bit of a shock today while checking the size of our Spryker install. Naturally the
vendor directory was the biggest but one particular module stands out:
du -sh vendor/spryker
du -sh vendor/spryker/chart
Unless I'm looking at this wrong, the chart module is nearly making up half the size of the entire core Spryker codebase!
The actual chart module is not too big itself and looks innocent until the webpack assets are compiled
du -sh vendor/spryker/chart/assets/Zed/node_modules
I know disk space is cheap and it is not really hurting us, but as engineers we should support theand aim to keep our digital footprint as small as possible.
For our particular project I think this module is only used for the Backoffice dashboard and for us this data is already in our BI systems so we could consider removing this module.
If we do this it will certainly save a bit of time in our CI pipelines, with less to download and compile.
Update: I just noticed there was an update to this module in the last day so maybe this is already optimised - something we can also check.
Just posting this here incase others are looking to save some space, or have other thoughts on reducing the application footprint.
- All Categories
- 38 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 32 Spryker News
- 534 Developer Corner
- 405 Spryker Development
- 54 Spryker Dev Environment
- 272 Spryker Releases
- 30 Propel ORM
- 46 Community Projects
- 6 Gacela Project
- 3 PHP Bridge
- 21 Hackathon
- 3.2K 📜 Slack Archives
- 115 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random
- 4 Code Testing
- 23 Product & Business Questions
- 40 Spryker Safari Questions
- 35 The Blackhole