Repository navigation
Expand file tree
/
Copy pathimportmap.php
More file actions
53 lines (51 loc) · 1.52 KB
/
Copy pathimportmap.php
File metadata and controls
53 lines (51 loc) · 1.52 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
<?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 [
'app' => [
'path' => './assets/app.js',
'entrypoint' => true,
],
'admin' => [
'path' => './assets/admin.js',
'entrypoint' => true,
],
'accounting-journal' => [
'path' => './assets/admin/accounting/journal/list.js',
'entrypoint' => true,
],
'techletter' => [
'path' => './assets/techletter/techletter.js',
'entrypoint' => true,
],
'sponsor-scanner' => [
'path' => './assets/sponsor/scanner.js',
'entrypoint' => true,
],
// Installé par Composer (npm-asset/qr-scanner) : le worker, chargé par import
// dynamique, doit rester à côté de la lib.
'qr-scanner' => [
'path' => 'npm-asset/qr-scanner/qr-scanner.min.js',
],
// Installé par Composer (npm-asset/dropzone).
'dropzone' => [
'path' => 'npm-asset/dropzone/dist/dropzone.mjs',
],
'semantic-ui/dist/semantic.min.css' => [
'version' => '2.5.0',
'type' => 'css',
],
'semantic-ui/dist/semantic.min.js' => [
'version' => '2.5.0',
],
];