Webpack Encore Recipe
require 'contrib/webpack_encore.php';
Configuration
- webpack_encore/package_manager (optional): set yarn or npm. We try to find if yarn or npm is available and used.
Usage
For Yarn
after('deploy:update_code', 'yarn:install');
For npm
after('deploy:update_code', 'npm:install');
after('deploy:update_code', 'webpack_encore:build');
Configuration
webpack_encore/package_manager
Configuration
- webpack_encore/package_manager (optional): set yarn or npm. We try to find if yarn or npm is available and used.
Usage
For Yarn
after('deploy:update_code', 'yarn:install');
For npm
after('deploy:update_code', 'npm:install');
after('deploy:update_code', 'webpack_encore:build');
Autogenerated
The value of this configuration is autogenerated on access.
webpack_encore/env
Default value
'production'
Tasks
webpack_encore:build
Runs webpack encore build.