-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Version
3.0.3
Reproduction link
Steps to reproduce
- Create a new app
- Add a lazy loaded route named 'myRoute'
- Build it
- Check that you have a
myRoute.js
file in your build folder - Deploy it to an apache server after following the
.htaccess
recommandation in the vue-router docs - Check that your browser shows the content of the
myRoute.js
file instead of serving theindex.html
file when browsinghttp://mysite.com/myRoute
What is expected?
The browser shoud display the index.html at the given route.
What is actually happening?
The browser displays the js content of the javascript file.
It works as expected with the following conf (taken from create-react-app):
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]