Symfony Webpack Encore Tutorial: Compiling JavaScript + CSS

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2020
  • ℹ 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.tech
    👇Follow me on Social Media:
    Twitter: / garyclarketech
    Linkedin: / garyclarketech
    💕Show support:
    www.paypal.com/donate/?hosted...
  • НаукаНаука

Комментарии • 35

  • @ombrax5
    @ombrax5 Год назад

    Thank you so much, Gary! This is exactly what I need as to beginning understanding webpack encore. Great work.

  • @danilivanov
    @danilivanov Год назад

    For a long time I was afraid to use this in my projects. But here I am =) Thanks =)

  • @pavelgolin2421
    @pavelgolin2421 3 года назад +1

    very nice and helpful! thanks

  • @disconnect3763
    @disconnect3763 16 дней назад

    Thank you!

  • @adrianfgutierrez2836
    @adrianfgutierrez2836 3 года назад +1

    God job 👏👏👏 Thank you 👍

  • @adrianfgutierrez2836
    @adrianfgutierrez2836 3 года назад

    You channel going up

  • @bakaleisanich
    @bakaleisanich 3 года назад

    Thank You!

  • @FlowWOBO
    @FlowWOBO 2 года назад +1

    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  2 года назад

      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

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

  • @AlfinAndri
    @AlfinAndri 2 года назад

    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  2 года назад

      You'd need to remove references to the 3rd party libraries in order to exclude them

    • @AlfinAndri
      @AlfinAndri 2 года назад

      @@GaryClarkeTech Thank you Gary, you're awesome.

  • @fitter2boss72
    @fitter2boss72 2 года назад

    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.

  • @KOSMOS-so6vw
    @KOSMOS-so6vw 2 года назад

    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

  • @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 года назад +1

      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 года назад +1

      @@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!

  • @parijke
    @parijke 3 года назад +1

    Maybe nice to follow up how to integrate with things as tailwind or purgecss or vue or ....

    • @GaryClarkeTech
      @GaryClarkeTech  3 года назад

      Yeah you're right. I'll definitely do that at some point in the future.

    • @bakaleisanich
      @bakaleisanich 3 года назад

      @@GaryClarkeTech react =)

    • @GaryClarkeTech
      @GaryClarkeTech  3 года назад +1

      @@bakaleisanich Vue and React are both supported by Webpack Encore so maybe I'll touch both

    • @bakaleisanich
      @bakaleisanich 3 года назад

      @@GaryClarkeTech mmm)

  • @fitter2boss72
    @fitter2boss72 2 года назад

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

  • @369-davian
    @369-davian Год назад

    hi master, from dominican republic, visit us and enjoy, thanks for all the lesson 🐬