Important notice: The Grunt config in our Starter Themes got replaced by gulp + webpack in the latest releases.
Gulp is quite similar to Grunt and allows to automate tasks like SASS > CSS compilation.
Webpack makes bundling of (Javascript) modules a breeze. The main advantage of bundling modules into a single file is that static assets get a smaller file size.
Including and bundling new Javascript modules is really easy and works out-of-the-box with the given configuration. A tutorial which explains how to include webpack modules to main.js can be found here: https://webpack.js.org/concepts/modules
Leave a Reply
You must be logged in to post a comment.