Chapters
27 Chapters
|
16:38:22
|
This course is archived!
Login to bookmark this video
-
This Video
Login or register to download the video!
Login or register to download the video!
-
Subtitles
Login or register to download the subtitles!
Login or register to download the subtitles!
-
Course Script
Login or register to download the script!
Login or register to download the script!
19.
Webpack Encore: Tips, Tricks, Questions & Best Practices
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
8 Comments
About that one entry - did not understand . So one entry for layout and one for your page? So 2 entries totally loaded when you load page?
Hey Lijana Z.!
That's exactly correct - that's the setup I recommend for traditional apps (apps that are not just a "single-page-app"). So, every page will have 1 or 2 entries in the HTML (1 entry [only the layout] for pages that don't need page-specific JS/CSS or 2 entries [layout + page-specific] for pages that do).
Cheers!
I think there is too much to know for just including the file :) I dont write much JS at nowadays, but I imagine people are making lot of wrong things by not knowing or forgetting even if watched video like this. I watched course about webpack from symfony casts but especially when not doing JS I already think I forgot lot of things from it. Only positive side - if you know those things well and can prove you do, you are better than other developers. But business also would like to not pay more for people who knows webpack, they instead would like to pay more for writing actuall business logic and so that there would be many developers able to do it, not just small exceptional who watch videos like this and remember all small details, becuase that adds extra costs.
But overall good video, explainations.
Hey Lijana Z.!
I agree! But that's why we created Encore... because for many apps, Webpack is still WAY too hard to setup. That being said, it is true that JavaScript is getting "harder" - there's more to know than before. But it also makes your code a lot "tighter" - it's much harder to make silent mistakes (e.g. without Webpack, you can forget to include a JS file that a different JS files needs... or you can include it in the wrong order - not possible without an error in Webpack).
Anyways, I *love* Encore. But overall, the JS world moves quickly, and I still think there is more work to be done to make this stuff more accessible so people can get back to writing business logic instead of understand a lot of setup and concepts.
Cheers!
Its weird for me how nobody fixes those jquery plugins if they are so popular? Or they are not popular so thats why they are not fixed? They keep creating new javascript frameworks frequently but when it comes to support of simple libraries - nobody cares :)
Hey Lijana Z.!
Yea... support is hard in open source :P. But, it's hopefully not as bad as it seems - I have a harder and harder time finding these "bad" jQuery plugins - many *have* now been updated :).
Cheers!
Guys, you should seriously adjust the volume of that beginning sound to the volume of the conference itself, otherwise I will be deaf pretty soon...
Hey Krzysztof K. I agree, the intro music added by the company that recorded the talks is WAY too loud. I'll work on getting this adjusted. Sorry for your ears! 👂
"Houston: no signs of life"
Start the conversation!