Configure webpacker `cache_manifest: true` in non-dev environments (#33832)

pull/2965/head
Matt Jankowski 2025-02-04 10:55:10 -05:00 committed by GitHub
parent 95caa8bc4e
commit 745391092c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -13,8 +13,8 @@ default: &default
# ['app/assets', 'engine/foo/app/assets']
resolved_paths: []
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
# Cache manifest.json for performance
cache_manifest: true
# Extract and emit a css file
extract_css: true
@ -55,6 +55,9 @@ development:
compile: true
# Reload manifest in development environment so we pick up changes
cache_manifest: false
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
@ -89,6 +92,3 @@ production:
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Cache manifest.json for performance
cache_manifest: true