To fix stylesheet not loaded because of MIME-type with HTML, we should make sure the link element has the right attributes.
For instance, we write
<link rel="stylesheet" src="dist/photoswipe.css" />
to add a link element with the rel attribute set toi stylesheet
.
And we set the stylesheet URL as the value of the src attribute.