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

Hi I want to add one CSS file but spryker puts public folder in gitignore can any one help how shou

U042Q46D597
U042Q46D597 Posts: 26 🧑🏻‍🚀 - Cadet

Hi I want to add one CSS file but spryker puts public folder in gitignore
can any one help how should i upload my custom CSS to git ?

Comments

  • Alberto Reyer
    Alberto Reyer Posts: 690 🪐 - Explorer

    Spryker is compiling the CSS from SASS sources normally, so their is no need for a separate CSS maintained by hand.

    But if you really want to just add your CSS, put it in frontend/assets/global/css and it will be copied over to the public directory during the frontend build process (docker/sdk console frontend:build:yves).
    You can then load it in your page by adding <link rel="stylesheet" href="{{ publicPath('css/<your_css>.css') }}"> to src/Pyz/Yves/ShopUi/Theme/default/templates/page-layout-main/page-blank.twig

  • U042Q46D597
    U042Q46D597 Posts: 26 🧑🏻‍🚀 - Cadet

    Thanks @UL6DGRULR
    i will look do it