Getting Started
Copy (at least) the following files from the appropriate template sites build:
scripts/webpack.sh.browserslistrcwebpack.config.jswebpack.json
If you want to use Jest (for JavaScript testing), you also need:
.babelrcjest.config.js
Make sure the webpack.sh script is executable:
chmod +x scripts/webpack.sh
# Or to update all file/script permissions at once:
scripts/permissions-for-development.sh
Give the application access to the alberon/webpack package and install it:
composer require alberon/webpack
Configure the dest and publicPath paths in webpack.json.
Enable (uncomment) the required features in webpack.config.js (and apply any other required customisations).