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
2) Install dependency:
cd ./hmr-webpack2/_dev
npm install
or
yarn
3) Configurate paths:
3.1) Open file: <code>_dev/hot.webpack.js</code>
3.2) Check <code>themeFolderName</code> and <code>webpackConfig.output.publicPath</code>
4) Start hot mode:
# Hot mode:
npm run hot
or
yarn hot
Other
Example Hot Module Replacement for <code>Webpack 1.x</code> Prestashop 1.7
Example Hot Module Replacement for <code>Webpack 2.x</code> Prestashop 1.7
Example Hot Module Replacement for <code>Webpack 3.x</code> Prestashop 1.7
Commenti (0)
Non è stato possibile inviare il tuo giudizio sulla recensione
Segnala commento
Segnalazione inviata
Non è stato possibile inviare la tua segnalazione