I've find this question on stack overflow that is a little bit confusing: https://stackoverflow.com/questions/35054082/webpack-how-to-build-production-code-and-how-to-use-it So I need to find a new one that explain this issue better.