pieceofcake2/vite v1.0.0
Basename is uppercase README.mdReference guide has multiple section headings
SHA-256276fda211222d8ff168d7103ae1c4484c5b56d01ecd3379113a1768d3874ed77
MaleculeH(Db)Md
Evidence
1<?php
2
3App::uses('AppHelper', 'View/Helper');
4
5/**
6 * Vite integration helper for CakePHP 2.
7 *
8 * Reads Vite's `manifest.json` to output tags for built assets, or points
9 * to the Vite dev server when `Vite.devServerUrl` is configured.
10 *
11 * @property HtmlHelper $Html
12 */
13cl …
47:10… arent::__construct($View, $settings);
48
49 $this->manifestPath = Configure::read('Vite.manifestPath')
50 ?: WWW_ROOT . 'build/manifest. …
74:20… xists($this->manifestPath)) {
75 throw new RuntimeException("Vite manifest file not found: {$this->manifestPath}");
76 }
77 $data = json_decode(file_get_contents($this->manifestPath), true);
78 if (JSON_ERROR_NONE !== json_last_error() || !is_array($data)) {
79 …
6:135… =CakePHP&labelColor=%23D33C43&color=%23FFFFFF)
7
8This helper integrates [Vite](https://vite.dev/)-built assets into a CakePHP 2 application. It reads Vite's `manifest.json` to output `<link>` and `<script type="module">` tags with hashed filenames, and can load assets from the Vite dev server during development.
9
10## Installation
11
121. **Install the plugin**:
⋯10 lines
1MIT License
2
3Copyright (c) 2026 pieceofcake2.
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the righ …
No evidence locations were recorded for this file. Raw result