Default webpack config for wordpress.
Handles all the assets in a modern webpack 5 config for dev and prod
- Bundle JS (babel env & jquery)
- Sass extraction
- Fonts, icons, images
- Index.html with dependencies in
/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.