PHPackages                             nystudio107/craft-twigpack - 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. [Templating &amp; Views](/categories/templating)
4. /
5. nystudio107/craft-twigpack

ActiveCraft-plugin[Templating &amp; Views](/categories/templating)

nystudio107/craft-twigpack
==========================

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

5.0.0(2y ago)97341.4k↓22.7%19[1 PRs](https://github.com/nystudio107/craft-twigpack/pulls)17MITPHPPHP ^8.2.0

Since Sep 22Pushed 2y ago3 watchersCompare

[ Source](https://github.com/nystudio107/craft-twigpack)[ Packagist](https://packagist.org/packages/nystudio107/craft-twigpack)[ GitHub Sponsors](https://github.com/khalwat)[ RSS](/packages/nystudio107-craft-twigpack/feed)WikiDiscussions develop-v5 Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (52)Used By (17)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f258b9b8b1802ac904c9951316fa788fb88ed2f2c8ef2d8a3274f0020e4b704b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d747769677061636b2f6261646765732f7175616c6974792d73636f72652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigpack/?branch=v5) [![Code Coverage](https://camo.githubusercontent.com/42d03b23753e74dd7d3269ee0761a92dbc517ddee0d1ecd6f27c3073f985d004/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d747769677061636b2f6261646765732f636f7665726167652e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigpack/?branch=v5) [![Build Status](https://camo.githubusercontent.com/8a8870797320c3cba92c60db3274c5898a1a5a29e76be1395d341875962a9902/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d747769677061636b2f6261646765732f6275696c642e706e673f623d7635)](https://scrutinizer-ci.com/g/nystudio107/craft-twigpack/build-status/v5) [![Code Intelligence Status](https://camo.githubusercontent.com/7eef31df6e182debd8b459cd09e0c302dcdc42658d780f0ad8c09fd0ac891fb4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e7973747564696f3130372f63726166742d747769677061636b2f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d7635)](https://scrutinizer-ci.com/code-intelligence)

Twigpack plugin for Craft CMS 5.x
=================================

[](#twigpack-plugin-for-craft-cms-5x)

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

[![Screenshot](./docs/docs/resources/img/plugin-logo.png)](./docs/docs/resources/img/plugin-logo.png)

Related Article: [An Annotated webpack 4 Config for Frontend Web Development](https://nystudio107.com/blog/an-annotated-webpack-4-config-for-frontend-web-development)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require nystudio107/craft-twigpack

    ```
3. Install the plugin via `./craft install/plugin twigpack` via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for Twigpack.

You can also install Twigpack via the **Plugin Store** in the Craft Control Panel.

Documentation
-------------

[](#documentation)

Click here -&gt; [Twigpack Documentation](https://nystudio107.com/plugins/twigpack/documentation)

Twigpack Roadmap
----------------

[](#twigpack-roadmap)

Some things to do, and ideas for potential features:

- Release it

Brought to you by [nystudio107](https://nystudio107.com/)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 92.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~3 days

Total

49

Last Release

762d ago

Major Versions

1.2.15 → 4.0.0-beta.12022-02-24

1.2.16 → 4.0.0-beta.32022-04-17

1.2.17 → 4.0.0-beta.42022-04-26

v1.x-dev → v4.x-dev2024-04-06

4.0.0 → 5.0.0-beta.12024-04-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7570798?v=4)[Andrew Welch](/maintainers/khalwat)[@khalwat](https://github.com/khalwat)

---

Top Contributors

[![khalwat](https://avatars.githubusercontent.com/u/7570798?v=4)](https://github.com/khalwat "khalwat (234 commits)")[![timkelty](https://avatars.githubusercontent.com/u/18329?v=4)](https://github.com/timkelty "timkelty (6 commits)")[![gbowne-quickbase](https://avatars.githubusercontent.com/u/39066452?v=4)](https://github.com/gbowne-quickbase "gbowne-quickbase (3 commits)")[![bighoho123](https://avatars.githubusercontent.com/u/7004799?v=4)](https://github.com/bighoho123 "bighoho123 (3 commits)")[![chasegiunta](https://avatars.githubusercontent.com/u/1377169?v=4)](https://github.com/chasegiunta "chasegiunta (2 commits)")[![AugustMiller](https://avatars.githubusercontent.com/u/1895522?v=4)](https://github.com/AugustMiller "AugustMiller (1 commits)")[![hendrikeng](https://avatars.githubusercontent.com/u/18122799?v=4)](https://github.com/hendrikeng "hendrikeng (1 commits)")[![dubcanada](https://avatars.githubusercontent.com/u/120325?v=4)](https://github.com/dubcanada "dubcanada (1 commits)")[![chrisrowe](https://avatars.githubusercontent.com/u/220456?v=4)](https://github.com/chrisrowe "chrisrowe (1 commits)")[![paweltatarczuk](https://avatars.githubusercontent.com/u/13351326?v=4)](https://github.com/paweltatarczuk "paweltatarczuk (1 commits)")[![Kashkin](https://avatars.githubusercontent.com/u/3699310?v=4)](https://github.com/Kashkin "Kashkin (1 commits)")

---

Tags

assetcraft-plugincraftcmshmr-supportmanifest-jsonmixrevisiontwigwebpackwebpack-dev-servertwigcraftcmscraft-pluginwebpackwebpack-dev-serverhmr-supportmanifest-json

### Embed Badge

![Health badge](/badges/nystudio107-craft-twigpack/health.svg)

```
[![Health](https://phpackages.com/badges/nystudio107-craft-twigpack/health.svg)](https://phpackages.com/packages/nystudio107-craft-twigpack)
```

###  Alternatives

[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[nystudio107/craft-emptycoalesce

Empty Coalesce adds the ??? operator to Twig that will return the first thing that is defined, not null, and not empty.

28143.7k3](/packages/nystudio107-craft-emptycoalesce)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[nystudio107/craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.

20108.4k3](/packages/nystudio107-craft-templatecomments)[viget/craft-classnames

Classnames plugin for Craft CMS

1115.5k1](/packages/viget-craft-classnames)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
