GithubHelp home page GithubHelp logo

SPA asset-path about slidev HOT 5 CLOSED

slidevjs avatar slidevjs commented on May 15, 2024
SPA asset-path

from slidev.

Comments (5)

6c756b avatar 6c756b commented on May 15, 2024 1

actually I have no problem atm with this. Was just testing your great work.

But when I host the SPA somewhere in a subfolder of my filesystem like example.com/bla/bla/index.html the asset-folder has to be at example.com/assets/ .. in my opinion it would be better to have it in exmaple.com/bla/bla/assets/

from slidev.

antfu avatar antfu commented on May 15, 2024

This is the output of Vite. And I think using absolute if safer as you can't actually be sure which route will the component been used. As long as the base is resolved correct, I don't see it's an issue.

What's the problem you have facing?

from slidev.

antfu avatar antfu commented on May 15, 2024

slidev build --base /bla/bla/

The demo https://slidev.antfu.me/demo/starter is using exactly that.

from slidev.

6c756b avatar 6c756b commented on May 15, 2024

Och ok.. this works, thank you :).
Maybe you could add this info to your guide: https://sli.dev/guide/exporting.html#single-page-application-spa

from slidev.

antfu avatar antfu commented on May 15, 2024

Yeah, good idea, thanks

from slidev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.