#53 Setup Webpack and Babel for WordPress Theme | webpack wordpress theme development | webpack 4

Поделиться
HTML-код
  • Опубликовано: 29 ноя 2024

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

  • @stevanantic3019
    @stevanantic3019 4 года назад +4

    Packages that need to install - just copy paste :)
    npm i webpack webpack-cli @babel/core @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin css-loader file-loader mini-css-extr
    act-plugin optimize-css-assets-webpack-plugin cssnano style-loader uglifyjs-webpack-plugin cross-env -D

    • @H0kage1160
      @H0kage1160 10 месяцев назад +1

      The current command for installing the right versioned packages: npm i webpack webpack-cli @babel/core @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin css-loader file-loader mini-css-extract-plugin css-minimizer-webpack-plugin cssnano style-loas-minimizer-webpack-plugin cssnano style-loader cross-env -D

  • @PanchoMarconi
    @PanchoMarconi Год назад +2

    Hi! optimize-css-assets-webpack-plugin and uglifyjs-webpack-plugin don't work with weback 5, so I've installed css-minimizer-webpack-plugin and terser-webpack-plugin

  • @zoon-dot-com
    @zoon-dot-com Год назад +1

    You are an underrated teacher! The only thing I like about you is that you try to dig deeper and mention how things work under the hood.

  • @Uncaught_in_promise
    @Uncaught_in_promise 4 года назад +2

    Was looking for these 5 years.
    Thank you

  • @sylvainjacot1427
    @sylvainjacot1427 3 года назад +2

    npm i webpack web pack-cli @babel/core @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin css-loader file-loader mini-css-extract-plugin optimize-css-assets-webpack-plugin cssnano style-loader uglifyjs-webpack-plugin cross-env -D

  • @sachin6689
    @sachin6689 4 года назад +1

    U provided video on wp which i was looking for from long time u r great sir

  • @h-ash1757
    @h-ash1757 Год назад

    I don't know why I am getting error when I was installing packages. have to provide flag of --force. does it have negative impacts?

  • @TrungLuongphp
    @TrungLuongphp 4 года назад +1

    Hi Bro, I run code " npm i webpack@^4.44.1 webpack-cli@^3.3.12 @babel/core @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin css-loader file-loader mini-css-extract-plugin optimize-css-assets-webpack-plugin cssnano style-loader uglifyjs-webpack-plugin cross-env -D" but it has error with Cross-Site Scripting & Remote Code Execution. Please help me solves this. Thanks you!

  • @pasizdobrekuce
    @pasizdobrekuce 4 года назад +2

    npm i webpack webpack-cli @babel/core @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin css-loader file-loader mini-css-extract-plugin optimize-css-assets-webpack-plugin cssnano style-loader uglifyjs-webpack-plugin cross-env -D

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

    Great video!! Question... Do you have any pointers on how a child theme would work with this setup?
    We would want the ability to add some custom stuff per child theme and would need the ability to overwrite sass vars.
    Any ideas? My buddy and I are struggling to make a child theme.

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

      Same set up.
      Please follow this
      developer.wordpress.org/themes/advanced-topics/child-themes/

  • @russellazim6589
    @russellazim6589 4 года назад +2

    Bro , I am beginner, And I just want know why we use webpacke our theme

    • @Codeytek
      @Codeytek  4 года назад +3

      So that we can create components in modular pattern which makes it easy to work on those pieces of code and functionality in isolation and Webpack can bundle them together at build time into one file.
      You can watch this series to know more about Webpack benefits
      ruclips.net/p/PLD8nQCAhR3tRSHDQDZi3jGSgQ_9VNY4gu

  • @Uncaught_in_promise
    @Uncaught_in_promise 4 года назад +1

    Please provide instructions how to include into project not only SCSS , but SASS syntax as well (either / or).

    • @Codeytek
      @Codeytek  4 года назад +1

      .. Just uploaded one more with sass rules..
      ruclips.net/video/_KqJzhnjEjI/видео.html
      I have already recorded one's with sass, including fonts, images files, all power packed, more on the way under editing currently.

  • @a_zhary
    @a_zhary 4 года назад

    Awesome 👏 I am very glad that I have subscribed to your channel. Thank you!!!

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

    I get errors installing packages

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

    how did your command know it was to execute in wordpress please help. i am on windows btw

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

      if you see this please reply bro my website desperately needs speed and no cache, optimizer, defer, async, minify plugin can help it that much. I need code splitting please

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

      The command was run inside of the assets directory