Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 784 Bytes

2024-02-19-ignore-js-script-files-when-they-do-not-match-new-file-path-pattern.md

File metadata and controls

22 lines (21 loc) · 784 Bytes
title issue author author_email author_github
Ignore JS script files if they do not match the new file path pattern
NEXT-33857
Björn Meyer
BrocksiNet

Storefront

  • Added condition to ignore JS script files if they do not match the new file path pattern (see).

Example for a Theme called MyOldTheme (theme.json):

...
"script": [
  "@Storefront",
  "@AnotherTheme",
  "app/storefront/dist/storefront/js/my-old-theme.js", // This file will be ignored (structure before 6.6)
  "app/storefront/dist/storefront/js/my-old-theme/my-old-theme.js", // This file will be used (new structure)
],
...

Without this change, the storefront would display an error with a non-updated theme.json.