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.
- Host: GitHub
- URL: https://github.com/lesaff/processwire-manifest
- Owner: lesaff
- Created: 2021-07-12T11:40:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-12T11:44:41.000Z (over 4 years ago)
- Last Synced: 2025-05-22T02:11:32.538Z (9 months ago)
- Topics: laravel-mix, processwire, webpack
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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') }}
```