There are a lot of advantages of minifying your codes. Whenever you minify your code, it starts taking less space. Due to this, they take less time to transfer from one computer server to another. Transfer of minified code also requires less bandwidth. This makes the user more satisfied as the loading time decreases which enhances the overall user experience.
The main rule for minifying your code is to always minify the one which you are distributing and transferring to another server. The reason behind this rule is that the minified version of code is difficult to read and comprehend and decoding the minified version gets more complicated. So it is advised that you do not minify your source version. If you hand out a source map, it gets way easier to convert minified code versions to the original source version, making sure that production miscalculations are mapped to the accurate bit of code in the original source version.