What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hey guys πŸ™‚ We have an application with 2 stores (DE, UK). In a molecule I cre

2Β»

Comments

  • {
        "path": "assets/%namespace%/%theme%",
        "namespaces": [
            {
                "moduleSuffix": "DE",
                "namespace": "DE",
                "themes": ["DE"],
                "defaultTheme": "default"
            },
    ...
    
  • so i basically just added DE to the array of themes there: "themes": ["DE"]

  • and recreated the assets with docker/sdk console frontend:yves:build

  • U010MP7GCTV
    U010MP7GCTV Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    Uh one second πŸ™‚

  • U010MP7GCTV
    U010MP7GCTV Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    I added "default" to the array earlier instead of DE, sorry I am not used to that FE build stuff

  • Unknown
    edited July 2020

    whatever it does not find in the DE theme (basically everything but the template) it falls back to default for

  • no problem. frontend is a wild topic in general (spoken as a backend deev 😊)

  • works now?

  • U010MP7GCTV
    U010MP7GCTV Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    haha yeah, it's still building

  • U010MP7GCTV
    U010MP7GCTV Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    Ahh CSS and JS assets are working now, but it can not find fonts and images ^^

  • U010MP7GCTV
    U010MP7GCTV Posts: 28 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hey @UJN2JRU4F

    Let me know if you can help me out here πŸ™‚ Right now as you can see in the next image we have fonts and images in the global frontend assets folder, but they are only copied to the default folders in public.

    Since we adjusted the Twig configs for UK and DE the browser always tries to load all assets from DE/DE or UK/UK.

    Is there a more elegant way instead of copying images and fonts to both, UK and US folders? (which is the only solution I see right now)?