Summary
In this final chapter, we discovered Webpack – what it does, how to initialize it, how to configure it, and how to test its behavior. We saw that it could make us save lots of commands to compile JS or SASS/CSS assets. Even if we used it in the themes’ context, as is the case with the classic theme provided by PrestaShop, we can use the same process in the modules by changing the configuration file and setting the appropriate output path and entries.
In conclusion, we now understand how PrestaShop’s core works with Symfony and the old legacy libraries. This knowledge of the full environment helped us to understand how modules could embed and add new features into our system without disrupting the life cycle of Prestashop. Our multiple examples and use cases enable us to apply modern design patterns to our module projects. Finally, the last chapters about theme customization and asset bundling showed us how to make our shop look the way we prefer, fitting...