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..

What can I do, if changes that I made in the frontend don't take effect ? I changed src\Pyz\Yves\Sh

UV6R85WBE
UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet

What can I do, if changes that I made in the frontend don't take effect ?

I changed src\Pyz\Yves\ShopUi\Theme\default\components\organisms\header\header.twig

and did:

npm run yves
console cache:empty-all

?

Comments

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    Hi, try also console twig:cache:warmer
    This command will generate a cache file for twig templates

  • UV6R85WBE
    UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks for the answer, but I still don't see any changes

  • UV6R85WBE
    UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet

    Is is possible that my sync process does not work correctly ?

  • Sylvain Gaffie
    Sylvain Gaffie Sprykee Posts: 18 πŸ§‘πŸ»β€πŸš€ - Cadet

    can you see your change within vagrant/docker?
    you can run npm run yves:watch if you are doing frontend by the way.

  • UT4U1HEHG
    UT4U1HEHG Posts: 49 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    I can check it a bit later(in 1-2 hours), I do a code review at the moment.
    You can also check if you can dump at least something in this file using dump function in the twig.

    By the way I just shortly changed the same file in one of the latest versions of b2c demoshop using docker/sdk.
    I added some HTML and did console cache:empty-all && console twig:cache:warmer

    and by me header was updated

  • UV6R85WBE
    UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet

    I figured out that my directory sync does not work

  • UV6R85WBE
    UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet

    But no idea why

  • UKHD8KTMF
    UKHD8KTMF Posts: 393 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi Sirius, what platform are you using?

  • UV6R85WBE
    UV6R85WBE Posts: 24 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited March 2020

    Windows 10 , x64 and Vagrant

    Spryker B2C