nystudio107 / craft-plugin-vite

Plugin Vite is the conduit between Craft CMS plugins and Vite, with manifest.json & HMR support
MIT License
12 stars 11 forks source link

getCssHash() returns incorrect value #23

Closed raray closed 8 months ago

raray commented 8 months ago

Describe the bug

As of 4.0.7, getCssHash() is incorrectly removing a section of the hash if it includes a dash. For instance, this hash is being reported as rmXHq:

"asset-src/build/main-preload.js": {
    "css": [
      "main-preload.G7-rmXHq.css"
    ],
...

This is appears to be related to changes made for #21. Reverting to 4.0.6 resolves the issue.

Versions