PHPackages                             oleksiibulba/webpack-encore-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. oleksiibulba/webpack-encore-plugin

ActiveMicro-plugin[Utility &amp; Helpers](/categories/utility)

oleksiibulba/webpack-encore-plugin
==================================

This is a Micro plugin for webpack-encore support

v1.2(3y ago)4234[1 PRs](https://github.com/OleksiiBulba/webpack-encore-plugin/pulls)MITPHPPHP ^8.2

Since Dec 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/OleksiiBulba/webpack-encore-plugin)[ Packagist](https://packagist.org/packages/oleksiibulba/webpack-encore-plugin)[ RSS](/packages/oleksiibulba-webpack-encore-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (7)Used By (0)

Webpack-Encore plugin for Micro framework
=========================================

[](#webpack-encore-plugin-for-micro-framework)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b88da5205381a1035a6af48f70a8ea68d4e43aa2a16b1798c81318c23e17fde8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6c656b73696962756c62612f7765627061636b2d656e636f72652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oleksiibulba/webpack-encore-plugin)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/ec3a1d9b612a9ab1dd1b52fddcdff76ce3efb3ae389e4a97852264a5879eb864/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6c656b73696962756c62612f7765627061636b2d656e636f72652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oleksiibulba/webpack-encore-plugin)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/be81094024f20339a3c0a59667b5a2c1f2ae888d890ebb4094cf2e9e6ac1f8a2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f4f6c656b73696942756c62612f7765627061636b2d656e636f72652d706c7567696e2f6d61737465723f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/OleksiiBulba/webpack-encore-plugin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/f956e561065b1e81f39edef14c78a52a95cd10949a926cda2e112bc6ed6b1603/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4f6c656b73696942756c62612f7765627061636b2d656e636f72652d706c7567696e2f6d61737465723f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/OleksiiBulba/webpack-encore-plugin/?branch=master)[![Build Status](https://camo.githubusercontent.com/00d345c129aa4b6f38b214c63e48ca7b4858718a0383b0e4f190ebbe4a335a25/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f4f6c656b73696942756c62612f7765627061636b2d656e636f72652d706c7567696e2f6d61737465723f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/OleksiiBulba/webpack-encore-plugin/build-status/master)

This plugin adds several twig functions that help to include script and style html tags to twig templates from webpack-encore entries.

Get started
-----------

[](#get-started)

Before starting to work with the plugin, all you need is:

- Project based on [Micro Framework](https://github.com/Micro-PHP/skeleton);
- [@symfony/webpack-encore](https://www.npmjs.com/package/@symfony/webpack-encore) installed by npm or yarn;

### Install

[](#install)

You can install the plugin via composer:

```
composer require oleksiibulba/webpack-encore-plugin
```

### Usage

[](#usage)

Add `OleksiiBulba\WebpackEncorePlugin\WebpackEncorePlugin` to your plugins list:

```
