File tree 6 files changed +47
-23
lines changed
6 files changed +47
-23
lines changed Original file line number Diff line number Diff line change 20
20
npm-debug.log
21
21
yarn-error.log
22
22
# ##< symfony/webpack-encore-bundle ###
23
- composer.lock
23
+ composer.lock
24
+ # ##> symfony/asset-mapper ###
25
+ /public /assets /
26
+ /assets /vendor /
27
+ # ##< symfony/asset-mapper ###
Original file line number Diff line number Diff line change 86
86
"scripts" : {
87
87
"auto-scripts" : {
88
88
"cache:clear" : " symfony-cmd" ,
89
- "assets:install %PUBLIC_DIR%" : " symfony-cmd"
89
+ "assets:install %PUBLIC_DIR%" : " symfony-cmd" ,
90
+ "importmap:install" : " symfony-cmd"
90
91
},
91
92
"post-install-cmd" : [
92
93
" @auto-scripts"
Original file line number Diff line number Diff line change
1
+ framework :
2
+ asset_mapper :
3
+ # The paths to make available to the asset mapper.
4
+ paths :
5
+ - assets/
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Returns the importmap for this application.
5
+ *
6
+ * - "path" is a path inside the asset mapper system. Use the
7
+ * "debug:asset-map" command to see the full list of paths.
8
+ *
9
+ * - "entrypoint" (JavaScript only) set to true for any module that will
10
+ * be used as an "entrypoint" (and passed to the importmap() Twig function).
11
+ *
12
+ * The "importmap:require" command can be used to add new entries to this file.
13
+ */
14
+ return [
15
+ 'app ' => [
16
+ 'path ' => './assets/app.js ' ,
17
+ 'entrypoint ' => true ,
18
+ ],
19
+ ];
Original file line number Diff line number Diff line change 119
119
"psr/event-dispatcher": {
120
120
"version": "1.0.0"
121
121
},
122
- "psr/event-dispatcher": {
123
- "version": "1.0.0"
124
- },
125
122
"psr/link": {
126
123
"version": "1.1.1"
127
124
},
146
143
"symfony/asset": {
147
144
"version": "v5.4.0"
148
145
},
146
+ "symfony/asset-mapper": {
147
+ "version": "7.1",
148
+ "recipe": {
149
+ "repo": "github.com/symfony/recipes",
150
+ "branch": "main",
151
+ "version": "6.4",
152
+ "ref": "6c28c471640cc2c6e60812ebcb961c526ef8997f"
153
+ },
154
+ "files": [
155
+ "assets/app.js",
156
+ "assets/styles/app.css",
157
+ "config/packages/asset_mapper.yaml",
158
+ "importmap.php"
159
+ ]
160
+ },
149
161
"symfony/browser-kit": {
150
162
"version": "v5.4.0"
151
163
},
282
294
"config/packages/lock.yaml"
283
295
]
284
296
},
285
- "symfony/lock": {
286
- "version": "6.0",
287
- "recipe": {
288
- "repo": "github.com/symfony/recipes",
289
- "branch": "master",
290
- "version": "5.2",
291
- "ref": "a1c8800e40ae735206bb14586fdd6c4630a51b8d"
292
- },
293
- "files": [
294
- "config/packages/lock.yaml"
295
- ]
296
- },
297
297
"symfony/mailer": {
298
298
"version": "5.4",
299
299
"recipe": {
435
435
"symfony/proxy-manager-bridge": {
436
436
"version": "v5.4.0"
437
437
},
438
- "symfony/rate-limiter": {
439
- "version": "v5.4.0"
440
- },
441
438
"symfony/rate-limiter": {
442
439
"version": "v6.0.0"
443
440
},
525
522
"templates/base.html.twig"
526
523
]
527
524
},
528
- "symfony/uid": {
529
- "version": "v5.4.0"
530
- },
531
525
"symfony/uid": {
532
526
"version": "v6.0.0"
533
527
},
Original file line number Diff line number Diff line change 10
10
{% endblock %}
11
11
12
12
{% block javascripts %}
13
+ {% block importmap %}{{ importmap(' app' ) }}{% endblock %}
13
14
{# {{ encore_entry_script_tags('app') }}#}
14
15
{% endblock %}
15
16
</head >
You can’t perform that action at this time.
0 commit comments