Skip to main content
Version: 7.x

webpack_encore

Source

Installing

Add to your deploy.php

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

Source

webpack_encore/env

Source

Default value
'production'

Tasks

webpack_encore:build

Source

Runs webpack encore build.



Support Deployer ❤️

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer.
I maintain this open source project in my spare time.
Supporters on GitHub give me extra motivation to work on the project.