Skip to content

Isn´t really a way to open index.html SPA over file:// ? #9661

Discussion options

You must be logged in to vote

@rafael-mq

Tip: Built files are meant to be served over an HTTP server Opening index.html over file:// won't work

So what happens when you do this in quasar( in the quasar.conf.js file)?:
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',

See ( use Qv1 with app V2) :
https://quasar.dev/quasar-cli/quasar-conf-js#property-devserver

btw use router mode hash (not history).
vueRouterMode: 'history'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rafael-mq
Comment options

Answer selected by rafael-mq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants