File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,14 @@ export default class View {
3131 */
3232 __ ( key : string , default$ ?: string ) : string ;
3333
34+ /**
35+ * Get asset path(s) from Vite manifest.
36+ *
37+ * @param {string | string[] } file
38+ * @returns {string }
39+ */
40+ vite ( file : string | string [ ] ) : string ;
41+
3442 /**
3543 * Get old input.
3644 */
Original file line number Diff line number Diff line change 11/**
2- @param {string } file
3- */
2+ * Get asset path from Laravel Mix manifest.
3+ * @param {string } file
4+ * @returns {string }
5+ * @deprecated
6+ */
47export default function mix ( file : string ) : string ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Get asset path(s) from Vite manifest.
3+ *
4+ * @param {string | string[] } file
5+ * @returns {string }
6+ */
7+ export default function vite ( file : string | string [ ] ) : string ;
Original file line number Diff line number Diff line change 1+ interface ViteManifest {
2+ [ key : string ] : {
3+ file : string ;
4+ src ?: string ;
5+ isEntry ?: boolean ;
6+ imports ?: string [ ] ;
7+ css ?: string [ ] ;
8+ assets ?: string [ ] ;
9+ } ;
10+ }
11+
12+ export default class Repository {
13+ static manifestCache : ViteManifest | null = null ;
14+ static file ( file : string ) : string ;
15+ static getManifest ( ) : ViteManifest | null ;
16+ }
You can’t perform that action at this time.
0 commit comments