wp-theme-vite-tailwind icon indicating copy to clipboard operation
wp-theme-vite-tailwind copied to clipboard

Adapt finding the main.js array position in production builds

Open syntaxlexx opened this issue 1 year ago • 1 comments

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.

syntaxlexx avatar Sep 28 '23 20:09 syntaxlexx

Thanks @syntaxlexx , your piece of code solved my issue as well.

indaviande avatar Mar 19 '24 04:03 indaviande