PHPackages                             jaxwilko/wn-mix-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. jaxwilko/wn-mix-plugin

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

jaxwilko/wn-mix-plugin
======================

v1.0.2(4y ago)5661MITPHP

Since Jul 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jaxwilko/wn-mix-plugin)[ Packagist](https://packagist.org/packages/jaxwilko/wn-mix-plugin)[ RSS](/packages/jaxwilko-wn-mix-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

Winter Mix
==========

[](#winter-mix)

> NOTICE: This plugin is now redundent since Winter `v1.1.8`. The functionality provided has been added to core, please see the [docs](https://wintercms.com/docs/console/asset-compilation).

### Installation

[](#installation)

> Notice: NPN &gt;=`7.*` is require for this plugin

We leverage the npm v7 feature workspaces to manage plugin resources from the application's root.

To set this up, you need to add the following to your root `package.json`:

```
"workspaces": {
    "packages": [
        "plugins/*/*",
        "themes/*"
    ]
}
```

Then run `npm i`. This can be done for you via the `mix:install` command.

### Usage

[](#usage)

Once installed, create a file at the root of a plugin or theme with the name `winter.mix.js`.

This file will be 90% the same as any laravel mix config file. However, you must set mix's `publicPath`.

Which you can do simply as:

```
mix.setPublicPath(__dirname);
// or
mix.setPublicPath(__dirname + '/assets');
```

For example if your plugin file structure was:

```
plugins/acme/myPlugin
  - assets
  - src
    - app.scss
  - Plugin.php

```

Then you could use the following in your winter.mix.js file:

```
let mix = require('laravel-mix');

mix.setPublicPath(__dirname + '/assets');

mix.sass('src/app.scss', 'app.css');
```

### Compiling

[](#compiling)

Once you're all set up, you can use the `mix` command to run compilation.

```
Options:
  -l, --plugin[=PLUGIN]  Target a plugin.
  -t, --theme            Target the active theme.
  -d, --development      Run a development compile (this is default).
  -p, --production       Run a production compile.
  -w, --watch            Run and watch a development compile.
  -v                     Extra output

```

By default, the `mix` command runs in development mode, you can change this by using the `--production` flag.

You can only watch one thing at a time, so you must specify either `--theme` or `--plugin author.plugin`.

### Examples

[](#examples)

Compile theme assets:

- `./artisan mix --theme`
- `./artisan mix --theme --production` (for production)
- `./artisan mix --theme --watch` (in watch mode)

Compile plugin assets:

- `./artisan mix --plugin jaxwilko.mix`
- `./artisan mix --plugin jaxwilko.mix --production` (for production)
- `./artisan mix --plugin jaxwilko.mix --watch` (in watch mode)

Compile everything:

- `./artisan mix`
- `./artisan mix --production` (for production)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~21 days

Total

5

Last Release

1671d ago

Major Versions

v0.0.2 → v1.0.02021-07-25

### Community

Maintainers

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

---

Top Contributors

[![jaxwilko](https://avatars.githubusercontent.com/u/31214002?v=4)](https://github.com/jaxwilko "jaxwilko (14 commits)")

### Embed Badge

![Health badge](/badges/jaxwilko-wn-mix-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/jaxwilko-wn-mix-plugin/health.svg)](https://phpackages.com/packages/jaxwilko-wn-mix-plugin)
```

###  Alternatives

[optimistdigital/nova-resizable

Simple Laravel Nova tool to enable column resizing

1818.9k](/packages/optimistdigital-nova-resizable)

PHPackages © 2026

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