From 323d41eaf2a0dc8000a9a12f96ff36c40d79d77a Mon Sep 17 00:00:00 2001 From: Cyril L'Orphelin <cyril.lorphelin@cc.in2p3.fr> Date: Wed, 5 Feb 2020 10:11:03 +0100 Subject: [PATCH] ADD config files --- tms/config/packages/assets.yaml | 3 +++ tms/config/packages/webpack_encore.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tms/config/packages/assets.yaml create mode 100644 tms/config/packages/webpack_encore.yaml diff --git a/tms/config/packages/assets.yaml b/tms/config/packages/assets.yaml new file mode 100644 index 00000000..051d36dc --- /dev/null +++ b/tms/config/packages/assets.yaml @@ -0,0 +1,3 @@ +framework: + assets: + json_manifest_path: '%kernel.project_dir%/public/build/manifest.json' diff --git a/tms/config/packages/webpack_encore.yaml b/tms/config/packages/webpack_encore.yaml new file mode 100644 index 00000000..9191f4f4 --- /dev/null +++ b/tms/config/packages/webpack_encore.yaml @@ -0,0 +1,25 @@ +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 + + # if using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials') + # crossorigin: 'anonymous' + + # preload all rendered script and link tags automatically via the http2 Link header + # preload: true + + # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data + # strict_mode: false + + # if you have multiple builds: + # builds: + # pass "frontend" as the 3rg arg to the Twig functions + # {{ encore_entry_script_tags('entry1', null, 'frontend') }} + + # frontend: '%kernel.project_dir%/public/frontend/build' + + # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes) + # Put in config/packages/prod/webpack_encore.yaml + # cache: true -- GitLab