Symfony 6 - How to manage CSS in Symfony app using Webpack?

  Рет қаралды 481

Tanya WebDev

Tanya WebDev

Күн бұрын

Пікірлер: 9
@agravatvipul8101
@agravatvipul8101 Жыл бұрын
Good explation
@JesusLazaro-vn8bx
@JesusLazaro-vn8bx Жыл бұрын
Hello Tania, thanks for the video. One question, do you know any plugin to insert inline Critical CSS and defer the rest of css that is not critical. Thank you!
@tanyawebdev
@tanyawebdev Жыл бұрын
Yes, there are several plugins available for Symfony that can help with inserting inline critical CSS and deferring the rest of the CSS that is not critical. Here are a few popular ones: Symfony Critical CSS Bundle: This bundle provides a simple way to generate critical CSS for Symfony applications. It includes a command that extracts the critical CSS from your stylesheets and inserts it inline in the HTML document. Webpack Encore: This is a popular tool for managing assets in Symfony applications. It allows you to easily define entry points for your JavaScript and CSS files and then bundle and optimize them for production. Webpack Encore also provides a way to extract critical CSS and defer the rest of the CSS using the defer attribute. Assetic CriticalCssFilter: This is a filter for the Assetic asset management framework that can extract critical CSS from your stylesheets and insert it inline in the HTML document. It also provides an option to defer the rest of the CSS using the defer attribute. These are just a few examples of the plugins available for Symfony. You can explore other options by searching for "Symfony critical CSS" or "Symfony deferred CSS" on the web or on the Symfony community website.
@JesusLazaro-vn8bx
@JesusLazaro-vn8bx Жыл бұрын
@@tanyawebdev Thanks for your reply!! Actually I am using webpack Encore to bundle all my assets but I could find anything related to critical CSS, would you mind to share with me those ways to extract critical CSS that you mentioned. Thanks very much once again I am very new at Symfony so I really appreciate your help :)
@agravatvipul8101
@agravatvipul8101 Жыл бұрын
Can you help you when I used to asset function like Example {{asset(css/all.css)}} Then it was given error like
@tanyawebdev
@tanyawebdev Жыл бұрын
Hello! Did you find a bug? Do you still need help? To be honest, I don't quite understand what's going on there. I can't say for sure without seeing the screenshot of the code and the error. If you still need help, add me to LinkedIn and send screenshots. Link to my profile in the channel description tab.
@agravatvipul8101
@agravatvipul8101 Жыл бұрын
@@tanyawebdev okay good
@agravatvipul8101
@agravatvipul8101 Жыл бұрын
​@@tanyawebdev hi issues is fixed issues is related to version so thanks for support me
@agravatvipul8101
@agravatvipul8101 Жыл бұрын
Public/build/manifest.josn does not exits what was the issue
React JS Crash Course
1:48:48
Traversy Media
Рет қаралды 3,4 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Maintain security for your Tailscale secrets with GitHub
4:11
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 3,9 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 304 М.
CSS Crash Course For Absolute Beginners
1:25:11
Traversy Media
Рет қаралды 4,5 МЛН
Learn flexbox the easy way
34:04
Kevin Powell
Рет қаралды 742 М.
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
Intro to Windows Forms (WinForms) in .NET 6
1:35:50
IAmTimCorey
Рет қаралды 248 М.
Symfony 7 Scheduler Component tutorial - practice and theory
30:20
Incredible scroll-based animations with CSS-only
32:23
Kevin Powell
Рет қаралды 512 М.