From 165e4dd41ec841eee7e904a505010e3f04b473cf Mon Sep 17 00:00:00 2001 From: Tobias Berge Date: Wed, 5 Feb 2025 10:23:18 +0100 Subject: [PATCH] FIx outdated JS paths in theme.json for 6.6 --- guides/plugins/themes/add-css-js-to-theme.md | 2 +- guides/plugins/themes/create-a-theme.md | 3 ++- .../themes/override-bootstrap-variables-in-a-theme.md | 2 +- guides/plugins/themes/theme-configuration.md | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/guides/plugins/themes/add-css-js-to-theme.md b/guides/plugins/themes/add-css-js-to-theme.md index 256c2a05a..853a65190 100644 --- a/guides/plugins/themes/add-css-js-to-theme.md +++ b/guides/plugins/themes/add-css-js-to-theme.md @@ -91,7 +91,7 @@ Add some test code in order to see if it works out: console.log('SwagBasicExampleTheme JS loaded'); ``` -In the end, by running the command `bin/build-storefront.sh` your custom JS plugin is loaded. By default, the compiled JavaScript file is saved as `/src/resources/app/storefront/dist/storefront/js/swag-basic-example-theme.js`. It is detected by Shopware automatically and included in the Storefront. So you do not need to embed the JavaScript file yourself. +In the end, by running the command `bin/build-storefront.sh` your custom JS plugin is loaded. By default, the compiled JavaScript file is saved as `/src/resources/app/storefront/dist/storefront/js/swag-basic-example-theme/swag-basic-example-theme.js`. It is detected by Shopware automatically and included in the Storefront. So you do not need to embed the JavaScript file yourself. ## Using the hot-proxy \(live reload\) diff --git a/guides/plugins/themes/create-a-theme.md b/guides/plugins/themes/create-a-theme.md index 02a9e43eb..0be91731d 100644 --- a/guides/plugins/themes/create-a-theme.md +++ b/guides/plugins/themes/create-a-theme.md @@ -122,7 +122,8 @@ Now your theme is fully installed, and you can start your customization. │ │ ├── dist │ │ │ └── storefront │ │ │ └── js - │ │ │ └── swag-basic-example-theme.js + | | | └── swag-basic-example-theme + │ │ │ └── swag-basic-example-theme.js │ │ └── src │ │ ├── assets │ │ ├── main.js diff --git a/guides/plugins/themes/override-bootstrap-variables-in-a-theme.md b/guides/plugins/themes/override-bootstrap-variables-in-a-theme.md index d8b6a5a0f..1c7c2ab42 100644 --- a/guides/plugins/themes/override-bootstrap-variables-in-a-theme.md +++ b/guides/plugins/themes/override-bootstrap-variables-in-a-theme.md @@ -45,7 +45,7 @@ This entry point is called `overrides.scss`: ], "script": [ "@Storefront", - "app/storefront/dist/storefront/js/just-another-theme.js" + "app/storefront/dist/storefront/js/just-another-theme/just-another-theme.js" ], "asset": [ "@Storefront", diff --git a/guides/plugins/themes/theme-configuration.md b/guides/plugins/themes/theme-configuration.md index 4f543fced..9b591ce13 100644 --- a/guides/plugins/themes/theme-configuration.md +++ b/guides/plugins/themes/theme-configuration.md @@ -47,7 +47,7 @@ The theme configuration for a theme is located in the `theme.json` file `