Skip to content

Commit 9d3c1eb

Browse files
Added importmap compile step in production build if needed
This is usefull for plug-and-play production mode for asset-mapper
1 parent 3385dcf commit 9d3c1eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,7 @@ RUN set -eux; \
9292
composer dump-autoload --classmap-authoritative --no-dev; \
9393
composer dump-env prod; \
9494
composer run-script --no-dev post-install-cmd; \
95+
if [ -f importmap.php ]; then \
96+
php bin/console asset-map:compile; \
97+
fi; \
9598
chmod +x bin/console; sync;

0 commit comments

Comments
 (0)