Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.05 KB

File metadata and controls

38 lines (30 loc) · 1.05 KB

PrestaShop Classic Theme Example hot module replacement, webpack.config.js - for webpack 2.x version.

Get started

  1. 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
  1. Install dependency:
cd ./hmr-webpack2/_dev
npm install 
# or
yarn 
  1. Configurate paths:

  3.1) Open file: _dev/hot.webpack.js

  3.2) Check themeFolderName and webpackConfig.output.publicPath

  1. Start hot mode:
# Hot mode:
npm run hot
# or
yarn hot

Other

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