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

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • webpack wordpress theme development
    wordpress webpack 4
    webpack plugin for wordpress
    wordpress webpack boilerplate
    wordpress webpack github
    webpack 4 wordpress starter
    browsersync webpack wordpress
    webpack react wordpress
    wordpress bundle js
    Note:
    1. Move the webpack.config.js into assets folder and
    2. Remove the prefixed slash '/' from the JS_DIR, IMG_DIR and BUILD_DIR
    github.com/imr...
    Explained in the upcoming videos
    ----- SUBSCRIBE TO CHANNEL - www.youtube.co...
    ** Full Playlist **
    codeytek.com/c...
    ** Github repo **
    github.com/imr...
    Please star my repo to support my work 🙏
    ** Please nominate me for Github Star **
    stars.github.c...
    ****** Social Links *******
    Please follow 🙏
    Twitter - @codeytek
    / codeytek
    Github - imranhsayed
    github.com/imr...
    ****** Other Playlist *****
    ==== REACT TUTORIALS ====
    codeytek.com/c...
    ==== REDUX TUTORIALS ====
    codeytek.com/c...
    ==== REACT WITH WORDPRESS TUTORIALS ====
    codeytek.com/c...
    ==== WEBPACK TUTORIALS ====
    codeytek.com/c...
    #wordpress #webpack #babel

КОМЕНТАРІ • 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 9 місяців тому +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.

  • @BMikel
    @BMikel 4 роки тому +2

    Was looking for these 5 years.
    Thank you

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

  • @sachin6689
    @sachin6689 4 роки тому +1

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

  • @TrungLuongphp
    @TrungLuongphp 3 роки тому +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!

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

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

  • @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
      ua-cam.com/play/PLD8nQCAhR3tRSHDQDZi3jGSgQ_9VNY4gu.html

  • @BMikel
    @BMikel 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..
      ua-cam.com/video/_KqJzhnjEjI/v-deo.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!!!

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

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