A
A
Alexander Ampleev2020-05-28 17:12:46
go
Alexander Ampleev, 2020-05-28 17:12:46

Why is the style not loaded when developing locally?

This is how the paths are written in the template

{{define "Resources"}}
    <link href="./www/assets/css/loaders/loader-typing.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="./www/assets/css/loaders/loader-typing.css" rel="stylesheet" type="text/css" media="all"/>
{{end}}

It gives the following error: Removed
5ecfc6822f4c9922982660.png
comments at the beginning of the file, checked the rights to the file, the path is written relative to the root, in the same place where build is

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Pavlyuk, 2020-05-28
@pav5000

The text of the error directly contains the answer. The file type returned by the server does not match the strong type checking setting in the browser.
I suppose it is necessary for css files to make text / css in the Content-Type header

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question