Skip to content

Commit 94a1d30

Browse files
committed
minor #903 [Site] 2.9 site deploy tweaks using AssetMapper ad Symfony 6.3 (weaverryan)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Site] 2.9 site deploy tweaks using AssetMapper ad Symfony 6.3 | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | None | License | MIT Hi! Deploying with AssetMapper is pretty easy - this makes the last tweaks needed/wanted. Cheers! Commits ------- b72d090 [Site] 2.9 site deploy tweaks using AssetMapper ad Symfony 6.3
2 parents cc76ff0 + b72d090 commit 94a1d30

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

ux.symfony.com/.platform.app.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ type: php:8.1
55
dependencies:
66
php:
77
composer/composer: "^2"
8-
nodejs:
9-
yarn: "1.22.17"
108

119
build:
1210
flavor: none
@@ -49,13 +47,16 @@ hooks:
4947
5048
curl -s https://get.symfony.com/cloud/configurator | (>&2 bash)
5149
52-
(>&2
53-
symfony-build
54-
)
50+
(>&2 symfony-build)
51+
52+
php bin/console asset-map:compile
5553
5654
deploy: |
5755
set -x -e
5856
5957
(>&2 symfony-deploy)
6058
6159
php bin/console app:load-data
60+
# needed because StimulusBundle / asset mapper will currently
61+
# expect this asset mapper directory to exist at runtime
62+
mkdir var/translations

ux.symfony.com/assets/controllers.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"@symfony/ux-autocomplete": {
44
"autocomplete": {
55
"enabled": true,
6-
"fetch": "eager",
6+
"fetch": "lazy",
77
"autoimport": {
88
"tom-select/dist/css/tom-select.default.css": false,
99
"tom-select/dist/css/tom-select.bootstrap5.css": true
@@ -44,7 +44,7 @@
4444
"@symfony/ux-live-component": {
4545
"live": {
4646
"enabled": true,
47-
"fetch": "eager",
47+
"fetch": "lazy",
4848
"autoimport": {
4949
"@symfony/ux-live-component/dist/live.min.css": true
5050
}
@@ -53,7 +53,7 @@
5353
"@symfony/ux-notify": {
5454
"notify": {
5555
"enabled": true,
56-
"fetch": "eager"
56+
"fetch": "lazy"
5757
}
5858
},
5959
"@symfony/ux-react": {
@@ -71,7 +71,7 @@
7171
"@symfony/ux-swup": {
7272
"swup": {
7373
"enabled": true,
74-
"fetch": "eager"
74+
"fetch": "lazy"
7575
}
7676
},
7777
"@symfony/ux-turbo": {

0 commit comments

Comments
 (0)