Back to Deployer

Webpack Encore Recipe

docs/contrib/webpack_encore.md

8.0.31.5 KB
Original Source
<!-- DO NOT EDIT THIS FILE! --> <!-- Instead edit contrib/webpack_encore.php --> <!-- Then run bin/docgen -->

Webpack Encore Recipe

php
require 'contrib/webpack_encore.php';

Source

Configuration

  • webpack_encore/package_manager (optional): set yarn or npm. We try to find if yarn or npm is available and used.

Usage

php
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

Source

Configuration

  • webpack_encore/package_manager (optional): set yarn or npm. We try to find if yarn or npm is available and used.

Usage

php
For Yarn
after('deploy:update_code', 'yarn:install');
For npm
after('deploy:update_code', 'npm:install');
after('deploy:update_code', 'webpack_encore:build');

:::info Autogenerated The value of this configuration is autogenerated on access. :::

webpack_encore/env

Source

php
'production'

Tasks

webpack_encore:build {#webpack_encore-build}

Source

Runs webpack encore build.