Custom webpack config | #shorts | WordPress Tutorial

preview_player
Показать описание
Here's a quick tip on creating a custom webpack configuration while working with WordPress.

#gutenberg #wordpress
Рекомендации по теме
Комментарии
Автор

One thing we've struggled with is we used to have our JS for blocks among other enqueued JS files (non-block JS - general jQuery/JS files). When we'd run the build or start command it'd wipe out all non-block JS files. It used to work, nothing changed except NPM version and wp/scripts version.

andrewlima
Автор

Awesome! Thanks, Ryan! Also, what extension do you use to show commits inline? That's crazy helpful!

perezcarreno