Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Static Hosting on VSCode #939

friskblack started this conversation in General
Apr 4, 2023 · 1 comments · 1 reply
Discussion options

Is it possible to use LiveServer in VSCode for static hosting?

A simple build will give the following error

GET http://127.0.0.1:5501/assets/index.fbc75e81.js net::ERR_ABORTED 404 (Not Found)

127.0.0.1/:12 Refused to apply style from 'http://127.0.0.1:5501/assets/index.c055832a.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Hello,
I think we have the same one with different execution contexts.
I'm using version 0.50.0-beta.5 of slidev with a deployment on github pages. When I display the site on github.io I get the following error on several .js files that I can't resolve:

github.io/assets/index-Bcb5a6Mv.js‘ has been blocked due to a forbidden MIME type (’text/html").

Do you have any ideas for solving this type of problem?

You must be logged in to vote
1 reply
@kermanx
Comment options

kermanx Nov 5, 2024
Collaborator

You may need a --base option to solve this.

There is also a GitHub workflow you can use to deploy your slides: https://sli.dev/guide/hosting#github-pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.