About Webpack in Prestashop 1.7

Jan 25, 2018467Denis Kulikouski
About Webpack in Prestashop 1.7

Webpack is a module bundler which takes modules with dependencies and generates static assets that represent those modules. In order to use Webpack in Prestashop 1.7, you need to carry out the following actions:

1. Download and install Node.js:

  • Win or MacOS: download the installer from the website nodejs.org.
  • Debian and Ubuntu:

2. In the directory in Prestashop go to the _dev folder.
3. Perform in the command line: npm install
4. Then you have a choice:

  • To build your assets, enter npm run build  
  • To rebuild assets every time when the file is changed in the /themes/%themename%/_dev/ folder, enter npm run watch  

The Webpack configuration file for StarterTheme:

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Vlad

Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Vlad

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *