wp-theme-vite-tailwind
wp-theme-vite-tailwind copied to clipboard
Adapt finding the main.js array position in production builds
This ensures we don't have to guess the posision of the 'main.js' entry in manifest.json
. In some builds, the main.css
entry goes first, thereby leading to non-enqueueing of correct production build assets.
Thanks @syntaxlexx , your piece of code solved my issue as well.