idleberg / php-vite-manifest

A parser for Vite manifest files
https://packagist.org/packages/idleberg/vite-manifest
MIT License
12 stars 2 forks source link

Feat: Add support for css entry files, fix #3 #4

Closed idflood closed 1 year ago

idflood commented 1 year ago

Hi @idleberg ,

This feature adds support for css entry files as discussed in the related issue.

I've also tested this with wordpress-vite-assets and the following is now working as expected. Previously the css file was added as a script tag.

$viteAssets->inject(["src/main.js", "src/main.css"], [
  'integrity' => FALSE
]);