Symfony Webpack Encore Tutorial: Compiling JavaScript + CSS

  Рет қаралды 9,993

Gary Clarke

Gary Clarke

Күн бұрын

ℹ In this recording I show you how to compile your JavaScript and CSS frontend assets in Symfony using a tool called Webpack Encore. If you're familiar with managing frontend assets then you're probably familiar with Webpack...and you'll no doubt be aware that configuring and using it ain't a walk in the park...
🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
www.garyclarke...
👇Follow me on Social Media:
Twitter: / garyclarketech
Linkedin: / garyclarketech
💕Show support:
www.paypal.com...

Пікірлер: 35
@ombrax5
@ombrax5 Жыл бұрын
Thank you so much, Gary! This is exactly what I need as to beginning understanding webpack encore. Great work.
@GaryClarkeTech
@GaryClarkeTech Жыл бұрын
Glad it was helpful!
@danilivanov
@danilivanov Жыл бұрын
For a long time I was afraid to use this in my projects. But here I am =) Thanks =)
@GaryClarkeTech
@GaryClarkeTech Жыл бұрын
You are welcome!
@sonoftroy8572
@sonoftroy8572 Жыл бұрын
thanks for the tutorial! great content. quick question, when you're using symfony 6 do you ever adjust the zend_extension = opcache in the php.ini for better performance? when I adjusted the setting, the load time appeared to be very slow. any suggestions thanks
@GaryClarkeTech
@GaryClarkeTech Жыл бұрын
You're welcome. It's a long time since I've ever been required to touch that setting..I think I may have it enabled by default.
@FlowWOBO
@FlowWOBO 3 жыл бұрын
Thank you Gary for this very clear little tutorial. I'm looking to go further with configureDevServerOptions and 'hot' + 'livereload', but can't seem to get it to work. Did you go further in this direction?
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Thanks..no I didn't go any deeper into it. I may add some more Symfony frontend stuff when we get S6...I'm wary of stuff quickly dating if I do much more S5 atm
@KOSMOS-so6vw
@KOSMOS-so6vw 3 жыл бұрын
Kind people who can tell you how to call up a list of referrals in the symphony? I have a registration done by the ref link, the input is already configured, but I can't call up a list of everyone I invited, whatever I wrote in the controller, it gives me either an error or the one who invited me or my information and that's it
@disconnect3763
@disconnect3763 7 ай бұрын
Thank you!
@pavelgolin2421
@pavelgolin2421 4 жыл бұрын
very nice and helpful! thanks
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Cheers Pavel!
@jericoluislua
@jericoluislua 2 жыл бұрын
Hi I am trying to go through with these tutorial. Everything worked kinda.. I was able to build the files and its being shown in the browser network analysis. But if you look at the website the changes arent being made. Any idea whats causing this?
@GaryClarkeTech
@GaryClarkeTech 2 жыл бұрын
Possibly caching? Have you tried clearing your browser cache? I use a chrome extension called Clear Cache for this kind of thing.
@jericoluislua
@jericoluislua 2 жыл бұрын
@@GaryClarkeTech Thanks for the very quick reply! Turns out bootstrap was overwriting the default test css body color change Thats why i wasnt able to change it. I tested changing the paragraph tag’s font color and it was working!
@adrianfgutierrez2836
@adrianfgutierrez2836 4 жыл бұрын
You channel going up
@AlfinAndri
@AlfinAndri 3 жыл бұрын
Thank you. Lovely tutorials. How do we just only compile one or two files of on our own css/js files, excluding third party libs (bootstrap, fontawesome, jquery). I mean, if we run --watch flag, and working on own css, we don't need to compile other 3rd party library (bootstrap, fontawesome) right? They compiled just one-time only. How do we do that? Thank you.
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
You'd need to remove references to the 3rd party libraries in order to exclude them
@AlfinAndri
@AlfinAndri 3 жыл бұрын
@@GaryClarkeTech Thank you Gary, you're awesome.
@adrianfgutierrez2836
@adrianfgutierrez2836 4 жыл бұрын
God job 👏👏👏 Thank you 👍
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Welcome Adrián!
@fitter2boss72
@fitter2boss72 3 жыл бұрын
Why we don't see HMR here? :)
@qkenkenu
@qkenkenu 2 жыл бұрын
console.log('msg') in app.js not working, no matter wich wersion od encore i'm using.... js and the tools they build on top of it.. never works to me...
@GaryClarkeTech
@GaryClarkeTech 2 жыл бұрын
I'll check it out
@fitter2boss72
@fitter2boss72 3 жыл бұрын
Thank you. But, may be you show how to use EasyAdmin bundle in the future , I think it will be helpfull . Some times need to make small admin fitures fast as possible.
@GaryClarkeTech
@GaryClarkeTech 3 жыл бұрын
Noted..thanks for the suggestion
@parijke
@parijke 4 жыл бұрын
Maybe nice to follow up how to integrate with things as tailwind or purgecss or vue or ....
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Yeah you're right. I'll definitely do that at some point in the future.
@bakaleisanich
@bakaleisanich 4 жыл бұрын
@@GaryClarkeTech react =)
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
@@bakaleisanich Vue and React are both supported by Webpack Encore so maybe I'll touch both
@bakaleisanich
@bakaleisanich 4 жыл бұрын
@@GaryClarkeTech mmm)
@bakaleisanich
@bakaleisanich 4 жыл бұрын
Thank You!
@GaryClarkeTech
@GaryClarkeTech 4 жыл бұрын
Welcome!
@369-davian
@369-davian 2 жыл бұрын
hi master, from dominican republic, visit us and enjoy, thanks for all the lesson 🐬
@GaryClarkeTech
@GaryClarkeTech 2 жыл бұрын
Maybe one day!
Symfony 5 Cache Tutorial
16:43
Gary Clarke
Рет қаралды 9 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 74 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 46 М.
Symfony 6 - How to manage CSS in Symfony app using Webpack?
7:11
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Why is Laravel NOT used in Big Development Projects?
11:53
Stefan Mischook
Рет қаралды 185 М.
Symfony Forms Tutorial
16:57
Gary Clarke
Рет қаралды 26 М.
Qwik… the world's first O(1) JavaScript framework?
3:33
Fireship
Рет қаралды 679 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 552 М.