An open API service indexing awesome lists of open source software.

https://github.com/lesaff/processwire-manifest

Manifest is a ProcessWire module that bridges between Twig and Webpack.
https://github.com/lesaff/processwire-manifest

laravel-mix processwire webpack

Last synced: 5 months ago
JSON representation

Manifest is a ProcessWire module that bridges between Twig and Webpack.

Awesome Lists containing this project

README

          

# Manifest module for ProcessWire
by Rudy Affandi (2020)

Manifest is a ProcessWire module that bridges between Twig and Webpack. It also works with Laravel Mix. Manifest will take your `manifest.json` and automatically handles the `` and `<link>` tags on your front-end code output.

If you are using ProCache with CDN, it will handle CDN invalidation via query string method. Make sure to enable it on your CDN settings.

### Installation

### Settings
Go to Manifest module settings to set your `manifest.json` file and your `build` folder location.

### How to use it

#### Initialize it
```
$manifest = $modules->get("Manifest");
```

#### Use it in your template
```
$manifest->css('/css/app.css');
$manifest->js('/js/js.js');
```

Or if you're using twig
```
{{ global.manifest.css('/css/app.css') }}
{{ global.manifest.js('/js/app.js') }}
```