Skip to content

LanFeusT23/dynamic-import-vue-router-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-splitting-router-issue

A Vue.js router and dynamic import bug example

Issue

Using router.replace to load a page will not work if that page is dynamically imported.

Swap lines 9 and 10 in main.js to see it work/break.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published