PrestaShop Classic Theme Example hot module replacement, webpack.config.js - for webpack 2.x version.
- Clone demo repo:
# go to themes folder
cd ./themes
# clone theme (hmr-webpack2 is name theme, look config/theme.yml)
git clone https://github.com/retyui/prestashop-1.7-webpack-2-hot-module-replacement ./hmr-webpack2
- Install dependency:
cd ./hmr-webpack2/_dev
npm install
# or
yarn
- Configurate paths:
3.1) Open file: _dev/hot.webpack.js
3.2) Check themeFolderName
and webpackConfig.output.publicPath
- Start hot mode:
# Hot mode:
npm run hot
# or
yarn hot
Example Hot Module Replacement for Webpack 1.x
Prestashop 1.7
Example Hot Module Replacement for Webpack 2.x
Prestashop 1.7
Example Hot Module Replacement for Webpack 3.x
Prestashop 1.7