diff --git a/symfony/reprise/1.1/assets/app.js b/symfony/reprise/1.1/assets/app.js new file mode 100644 index 00000000..d3233d68 --- /dev/null +++ b/symfony/reprise/1.1/assets/app.js @@ -0,0 +1,9 @@ +/* + * Welcome to your app's main JavaScript file! + * + * This file will be included onto the page via the reprise_entry_script_tags('app') Twig function, + * which should already be in your base.html.twig. + */ +import './styles/app.css'; + +console.log('This log comes from assets/app.js - welcome to Symfony Reprise! 🎉'); diff --git a/symfony/reprise/1.1/assets/styles/app.css b/symfony/reprise/1.1/assets/styles/app.css new file mode 100644 index 00000000..dd6181a1 --- /dev/null +++ b/symfony/reprise/1.1/assets/styles/app.css @@ -0,0 +1,3 @@ +body { + background-color: skyblue; +} diff --git a/symfony/reprise/1.1/config/packages/reprise.yaml b/symfony/reprise/1.1/config/packages/reprise.yaml new file mode 100644 index 00000000..8e89516c --- /dev/null +++ b/symfony/reprise/1.1/config/packages/reprise.yaml @@ -0,0 +1,34 @@ +# Reprise works with zero configuration. Every option below is shown at its +# default value; uncomment the block and tweak what you need. +# See https://github.com/symfony/reprise/blob/main/doc/index.rst#configuration +# reprise: + # Directory the @symfony/reprise plugin writes entrypoints.json and manifest.json into. + # output_path: '%kernel.project_dir%/public/build' + + # Throw when entrypoints.json or a requested entry is missing, instead of rendering nothing. + # strict_mode: true + + # A framework.assets package name used to resolve entry URLs. null uses the default package. + # asset_package: null + + # crossorigin attribute set alongside SRI integrity: false, 'anonymous' or 'use-credentials'. + # crossorigin: false + + # Register rendered assets as WebLink HTTP/2 Link: preload headers (needs symfony/web-link). + # preload: true + + # Default attributes added to every rendered