-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimportmap.php
More file actions
37 lines (36 loc) · 1.89 KB
/
Copy pathimportmap.php
File metadata and controls
37 lines (36 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Returns the importmap for this application.
*
* - "path" is a path inside the asset mapper system. Use the
* "debug:asset-map" command to see the full list of paths.
*
* - "entrypoint" (JavaScript only) set to true for any module that will
* be used as an "entrypoint" (and passed to the importmap() Twig function).
*
* The "importmap:require" command can be used to add new entries to this file.
*
* @return array<string, array{ // Import name as key, description of the imported file as value
* path: string, // Logical, relative or absolute path to the file
* type?: 'js'|'css'|'json', // Type of the file, defaults to 'js'
* entrypoint?: bool, // Whether the file is an entrypoint, for 'js' only
* }|array{
* version: string, // Version of the remote package
* package_specifier?: string, // Remote "package-name/path" specifier, defaults to the import name
* type?: 'js'|'css'|'json',
* entrypoint?: bool,
* }>
*/
return [
'home' => ['path' => './assets/home.js', 'entrypoint' => TRUE],
'dashboard' => ['path' => './assets/dashboard.js', 'entrypoint' => TRUE],
'bootstrap' => ['version' => '5.3.8'],
'@popperjs/core' => ['version' => '2.11.8'],
'bootstrap/dist/css/bootstrap.min.css' => ['version' => '5.3.8', 'type' => 'css'],
'dashboard.settings' => ['path' => './assets/dashboard.settings.js', 'entrypoint' => TRUE],
'dashboard.tickets' => ['path' => './assets/dashboard.tickets.js', 'entrypoint' => TRUE],
'dashboard.tickets.single' => ['path' => './assets/dashboard.tickets.single.js', 'entrypoint' => TRUE],
'dashboard.clients' => ['path' => './assets/dashboard.clients.js', 'entrypoint' => TRUE],
'dashboard.agents' => ['path' => './assets/dashboard.agents.js', 'entrypoint' => TRUE],
'dashboard.team' => ['path' => './assets/dashboard.team.js', 'entrypoint' => TRUE],
];