deployer/docs/contrib/webpack_encore.md

48 lines
941 B
Markdown
Raw Normal View History

<!-- DO NOT EDIT THIS FILE! -->
<!-- Instead edit contrib/webpack_encore.php -->
<!-- Then run bin/docgen -->
# webpack_encore
[Source](/contrib/webpack_encore.php)
## Installing
Add to your _deploy.php_
```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
```php
For Yarn
after('deploy:update_code', 'yarn:install');
For npm
after('deploy:update_code', 'npm:install');
after('deploy:update_code', 'webpack_encore:build');
```
* Require
2021-08-31 20:15:06 +02:00
* [npm](/docs/contrib/npm.md)
* [yarn](/docs/contrib/yarn.md)
* Tasks
2021-08-31 20:15:06 +02:00
* [webpack_encore:build](#webpack_encorebuild) — Run webpack encore build
## Tasks
### webpack_encore:build
[Source](https://github.com/deployphp/deployer/search?q=%22webpack_encore%3Abuild%22+in%3Afile+language%3Aphp+path%3Acontrib+filename%3Awebpack_encore.php)
2021-08-31 20:15:06 +02:00