modification des assets pour theme
Some checks are pending
Cadoles/hydra-sql/pipeline/pr-develop Build started...
Cadoles/hydra-sql/pipeline/head This commit looks good

This commit is contained in:
2023-01-10 15:24:53 +01:00
parent d7ada479c4
commit 744b3c3c06
29 changed files with 493 additions and 63 deletions

View File

@ -19,7 +19,6 @@ framework:
cookie_path: "%cookie_path%"
assets:
base_urls: '%base_url%'
router:
default_uri: '%base_url%'
#esi: true

View File

@ -1,6 +1,6 @@
twig:
globals:
locales: "%app.supported_locales%"
locales: "%locales%"
default_path: '%kernel.project_dir%/templates'
form_themes:
- 'bootstrap_5_layout.html.twig'

View File

@ -1,9 +1,11 @@
webpack_encore:
# The path where Encore is building the assets - i.e. Encore.setOutputPath()
output_path: '%kernel.project_dir%/public/build'
# If multiple builds are defined (as shown below), you can disable the default build:
# output_path: false
output_path: false
builds:
appConfig: '%kernel.project_dir%/public/build/app'
themeConfig: '%kernel.project_dir%/public/build/theme'
# Set attributes that will be rendered on all script and link tags
script_attributes:
defer: true
@ -36,8 +38,11 @@ webpack_encore:
framework:
assets:
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
packages:
app:
json_manifest_path: '%kernel.project_dir%/public/build/app/manifest.json'
theme:
json_manifest_path: '%kernel.project_dir%/public/build/theme/manifest.json'
#when@prod:
# webpack_encore:
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)