PHPackages                             wp-performance/presswind-assets - 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. wp-performance/presswind-assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wp-performance/presswind-assets
===============================

Assets helpers for use Vite JS in WordPress

0.0.13(2y ago)44.0k—8.3%1MITPHPPHP ~8.1.0 || ~8.2.0

Since Nov 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/WP-Performance/presswind-assets)[ Packagist](https://packagist.org/packages/wp-performance/presswind-assets)[ Docs](https://wp-performance.com)[ RSS](/packages/wp-performance-presswind-assets/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

Presswind Vite JS Assets helpers for WordPress
----------------------------------------------

[](#presswind-vite-js-assets-helpers-for-wordpress)

This code give you the ability to use methods of the Presswind directly in your theme for use Vite JS.

Find the package on [Packagist](https://packagist.org/packages/wp-performance/presswind-assets)

PWVite
------

[](#pwvite)

port - default 3000
path - from your theme root
position front|admin|editor - default front
is\_ts - default false
is\_plugin true|false - default false - for search assets in plugin folder
instead of theme folder
slug - handle - default presswind-script
is\_https - default true - for https or http
main\_file - default main - file name without extension

```
use PressWind\PWVite;

// use with named parameters for more readability

// in theme
// 1 - search dist folder in root theme
PWVite::init(port: 3000, path: '');

// 2 - search admin/dist folder in root theme
PWVite::init(port: 4444, path: 'admin', position: 'admin', is_ts: false);

// in plugin

// 3 - search dist folder in plugin test-plugin (from index.php root plugin)
PWVite::init( port: 7777, path: 'test-plugin/', plugin_path: __FILE__, slug:
'plugin-test' );
```

Preload fonts
-------------

[](#preload-fonts)

```
PWVite::init()->setPreloadFont();
```

PWAssets
--------

[](#pwassets)

```
use PressWind\PWAssets;

// for css
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toFront();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toBack();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toBlock();
PWAsset::add('my-css', get_template_directory_uri().'/assets/style.css')->dependencies([])->media('all')->version('1.0.0')->toLogin();

// for js
PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->module()
    ->toFront()
    ->withInline('console.log("hello world")');

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->noModule()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->async()
    ->inFooter()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toFront();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toBack();

PWAsset::add('my-js', get_template_directory_uri().'/assets/js/app.js')
    ->dependencies(['jquery'])
    ->version('1.0.0')
    ->defer()
    ->inFooter()
    ->toBlock();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

13

Last Release

839d ago

### Community

Maintainers

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

---

Top Contributors

[![ipatate](https://avatars.githubusercontent.com/u/46760?v=4)](https://github.com/ipatate "ipatate (1 commits)")

---

Tags

cssjsvitejswordpresswordpresswordpress pluginwordpress-themevite jswordpress vite

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/wp-performance-presswind-assets/health.svg)

```
[![Health](https://phpackages.com/badges/wp-performance-presswind-assets/health.svg)](https://phpackages.com/packages/wp-performance-presswind-assets)
```

###  Alternatives

[freemius/wordpress-sdk

Freemius WordPress SDK

303101.4k4](/packages/freemius-wordpress-sdk)[log1x/navi

A developer-friendly alternative to the WordPress NavWalker.

367633.2k7](/packages/log1x-navi)[wpmetabox/meta-box

The most powerful &amp; comprehensive plugin to create, manage, show and connect dynamic data with forms and custom fields effortlessly on WordPress.

1.2k20.5k3](/packages/wpmetabox-meta-box)[log1x/acf-editor-palette

A replica Gutenberg color picker field for Advanced Custom Fields.

100284.1k](/packages/log1x-acf-editor-palette)[hellonico/acf-country

A country field for ACF.

12193.2k](/packages/hellonico-acf-country)[alleyinteractive/wp-asset-manager

Asset Manager is a toolkit for managing front-end assets and more tightly controlling where, when, and how they're loaded.

32343.0k2](/packages/alleyinteractive-wp-asset-manager)

PHPackages © 2026

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