Skip to content

Humanify-nl/hum-webpack

Repository files navigation

hum-webpack

Default webpack config for wordpress.

Handles all the assets in a modern webpack 5 config for dev and prod

What it does:

  • Bundle JS (babel env & jquery)
  • Sass extraction
  • Fonts, icons, images
  • Index.html with dependencies in

Files are ordered like so:

/src/ OR /dist/
-- assets /
  -- js/
    -- src/
  -- css/
  -- scss/
  -- icons/
  -- images/
  -- fonts/
  index.html

Notes:

  • You probably won't need index.html for wordpress, just enqueue the bundle.js, main.css & editor.css
  • Jquery is assumed to be handled by wordpress itself, if not; add the script as per your preferences.

About

Default webpack config for wordpress use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published