This repository is a developer example demonstrating how to migrate the PrestaShop Classic Theme asset pipeline from Webpack 2 to Webpack 3, with hot module replacement (HMR) enabled for a faster front-end development workflow. Rather than a deployable storefront theme, it is a reference implementation showing the configuration and tooling changes needed to support HMR during theme development. It is based on a specific version of the PrestaShop Classic Theme.
- Webpack 3 migration from Webpack 2, including updated
babel-loader and extract-text-webpack-plugin - Hot Module Replacement via
webpack-hot-middleware and browser-sync-dev-hot-webpack-plugin, enabling live updates without full page reloads - Multi-config webpack setup using
webpack-merge, with separate default, development (with source maps), and production (minified) configurations - Browser-sync proxy for the PHP backend with HTML injection support via
bs-html-injector
This example is intended for PrestaShop theme developers who want to modernise their development workflow with hot module replacement and a Webpack 3 build pipeline. It requires NodeJS and shell access, and familiarity with webpack configuration. It is not a production-ready storefront theme.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent