From a84d5fa7f8cdbab3f64319bde881e5936fd39c59 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 25 Dec 2023 15:52:39 +0100 Subject: [PATCH] update webpack-encore-bundle recipe --- app/config/packages/webpack_encore.yaml | 8 ++------ app/package.json | 4 ---- app/symfony.lock | 2 +- app/webpack.config.js | 2 +- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/app/config/packages/webpack_encore.yaml b/app/config/packages/webpack_encore.yaml index 46834f0..4c009ee 100644 --- a/app/config/packages/webpack_encore.yaml +++ b/app/config/packages/webpack_encore.yaml @@ -25,14 +25,10 @@ webpack_encore: # 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 + # pass the build name as the 3rd argument to the Twig functions + # {{ encore_entry_script_tags('entry1', null, 'frontend') }} framework: assets: diff --git a/app/package.json b/app/package.json index ed82de5..d83a414 100644 --- a/app/package.json +++ b/app/package.json @@ -18,9 +18,5 @@ "dev": "encore dev", "watch": "encore dev --watch", "build": "encore production --progress" - }, - "dependencies": { - "sass": "^1.55.0", - "sass-loader": "^13.0.2" } } diff --git a/app/symfony.lock b/app/symfony.lock index fe3e120..e0daf3a 100644 --- a/app/symfony.lock +++ b/app/symfony.lock @@ -184,7 +184,7 @@ "repo": "github.com/symfony/recipes", "branch": "main", "version": "1.10", - "ref": "51fec8b86251b9bfc126ebc1827c9a02fa81ee81" + "ref": "eff2e505d4557c967b6710fe06bd947ba555cae5" }, "files": [ "assets/app.js", diff --git a/app/webpack.config.js b/app/webpack.config.js index a9c9aa4..408012f 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -11,7 +11,7 @@ Encore .setOutputPath('public/build/') // public path used by the web server to access the output path .setPublicPath('/build') - // only needed for CDN's or sub-directory deploy + // only needed for CDN's or subdirectory deploy //.setManifestKeyPrefix('build/') /*