retyui / prestashop-1.7-webpack-2-hot-module-replacement

Prestashop theme. Webpack 2 migration and hot module replacement

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Prestashop theme. Webpack 2 migration and hot module replacement

License:MIT License


Languages

Language:JavaScript 47.4%Language:CSS 27.0%Language:Smarty 25.6%