hugo-toha.github.io icon indicating copy to clipboard operation
hugo-toha.github.io copied to clipboard

Application.js error 404 javascript not working because of fingerprinting

Open gavytron opened this issue 1 year ago • 0 comments

The site works locally but JavaScript does not work not when pushed on a static site: (no animations, console errors).

After

there is:

In other words, there is a reference to application.js without fingerprinting the application.js file does not exist in public/scripts because there is only the file with fingerprinting

the browser console shows two error lines:

Failed to load resource: the server responded with a status of 404 ()

www.lifeslittlelab.vip/:1 Refused to execute script from 'https://www.lifeslittlelab.vip/scripts/application.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

I am deploying on render.com

render.com runs Hugo automatically when it sees a new commit on github but even when I run Hugo locally, inside public, I only see the application.css and application.js don't exist as files because there are their versions with fingerprinting. funny thing is that application.css is correctly referenced with fingerprinting but application.js is not referenced with fingerprinting.

gavytron avatar Sep 14 '23 17:09 gavytron