-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathimportmap.php
More file actions
59 lines (57 loc) · 3.13 KB
/
Copy pathimportmap.php
File metadata and controls
59 lines (57 loc) · 3.13 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
declare(strict_types=1);
/**
* 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 [
'app' => ['path' => './assets/app.js', 'entrypoint' => true],
'admin' => ['path' => './assets/admin.js', 'entrypoint' => true],
'@symfony/stimulus-bundle' => ['path' => './vendor/symfony/stimulus-bundle/assets/dist/loader.js'],
'bootstrap' => ['version' => '5.3.8'],
'@popperjs/core' => ['version' => '2.11.8'],
'bootstrap/dist/css/bootstrap.min.css' => ['version' => '5.3.8', 'type' => 'css'],
'@fortawesome/fontawesome-free' => ['version' => '7.2.0'],
'@fortawesome/fontawesome-free/css/all.css' => ['version' => '7.2.0', 'type' => 'css'],
'@fortawesome/fontawesome-free/css/fontawesome.min.css' => ['version' => '7.2.0', 'type' => 'css'],
'trix' => ['version' => '2.1.19'],
'trix/dist/trix.min.css' => ['version' => '2.1.19', 'type' => 'css'],
'@hotwired/stimulus' => ['version' => '3.2.2'],
'tom-select' => ['version' => '2.6.1'],
'tom-select/dist/css/tom-select.bootstrap5.css' => ['version' => '2.6.1', 'type' => 'css'],
'clipboard' => ['version' => '2.0.11'],
'leaflet' => ['version' => '1.9.4'],
'leaflet/dist/leaflet.min.css' => ['version' => '1.9.4', 'type' => 'css'],
'@orchidjs/sifter' => ['version' => '1.1.0'],
'@orchidjs/unicode-variants' => ['version' => '1.1.2'],
'tom-select/dist/css/tom-select.default.min.css' => ['version' => '2.6.1', 'type' => 'css'],
'lightgallery' => ['version' => '2.9.0'],
'lightgallery/plugins/thumbnail' => ['version' => '2.9.0'],
'lightgallery/plugins/zoom' => ['version' => '2.9.0'],
'lightgallery/css/lightgallery.css' => ['version' => '2.9.0', 'type' => 'css'],
'lightgallery/css/lg-zoom.css' => ['version' => '2.9.0', 'type' => 'css'],
'lightgallery/css/lg-thumbnail.css' => ['version' => '2.9.0', 'type' => 'css'],
'dropzone' => ['version' => '6.0.0-beta.2'],
'just-extend' => ['version' => '6.2.0'],
'dropzone/dist/dropzone.css' => ['version' => '6.0.0-beta.2', 'type' => 'css'],
'tom-select/dist/css/tom-select.default.css' => ['version' => '2.6.1', 'type' => 'css'],
'tom-select/dist/css/tom-select.bootstrap4.css' => ['version' => '2.6.1', 'type' => 'css'],
];