PHPackages                             rleeson/wp-webpack-loader - 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. rleeson/wp-webpack-loader

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

rleeson/wp-webpack-loader
=========================

Webpack asset loader for WordPress to switch between webpack-dev-server and production built assets

1.0.1(4y ago)13.6kMITPHPPHP &gt;=7.1

Since May 20Pushed 4y ago2 watchersCompare

[ Source](https://github.com/rleeson/wp-webpack-loader)[ Packagist](https://packagist.org/packages/rleeson/wp-webpack-loader)[ RSS](/packages/rleeson-wp-webpack-loader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Webpack Asset Loader
====================

[](#webpack-asset-loader)

PHP library for use in WordPress applications to facilitate development using Webpack Dev Server and deployment of Webpack published assets. Loader provides a systematic method to enqueue scripts and styles produced from Webpack entry points.

Default Configuration
---------------------

[](#default-configuration)

All assets are registered with the following sets of configuration parameters:

- `Handle Prefixes`: wpwebpack-
- `Script Path`: /assets/dist/js/
- `Static Path`: /assets/dist/static/
- `Style Path`: /assets/dist/css/

Usage
-----

[](#usage)

Register sets of assets associated with a Webpack configuration as follows:

```
use WPWebpackLoader\AssetLoader;
use WPWebpackLoader\Model\LoaderConfiguration;

// Define WPWEBPACK_DEV_ASSETS as a constant in wp-config.php
$assets = new AssetLoader(
            home_url(),
            WPWEBPACK_DEV_ASSETS,
            new LoaderConfiguration(
                function_to_get_version(),
                [ 'https://production-site.url/base' ]
            )
        );

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~127 days

Total

2

Last Release

1696d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7d779fecff648f4da4586ee4729b7e61f73e18d0303b5cb108e68edde47d205?d=identicon)[rleeson](/maintainers/rleeson)

---

Top Contributors

[![rleeson](https://avatars.githubusercontent.com/u/5117365?v=4)](https://github.com/rleeson "rleeson (3 commits)")

### Embed Badge

![Health badge](/badges/rleeson-wp-webpack-loader/health.svg)

```
[![Health](https://phpackages.com/badges/rleeson-wp-webpack-loader/health.svg)](https://phpackages.com/packages/rleeson-wp-webpack-loader)
```

PHPackages © 2026

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