Enabled terser-minify on production in a fashion similar to the way we did it in ISPnext.
In order to allow terser customization, I had to install the terser-webpack-plugin even though it was already installed with Webpack v5. On top of that, webpack complained about sourceMapping and chunk splitting which I therefore left as the default configuration. Other than that, things seem to work well with the changes in this PR.
In order to allow terser customization, I had to install the terser-webpack-plugin even though it was already installed with Webpack v5. On top of that, webpack complained about sourceMapping and chunk splitting which I therefore left as the default configuration. Other than that, things seem to work well with the changes in this PR.