Recompile piwik.js to reduce it's size


Can anyone please tell how can I recompile and minify piwik.js? I want to reduce it’s size by removing features that I do not need, for example, e-commerce tracking, downloads tracking, website overlay, etc.


Can we reduce the size of Matomo's javascript file?