Lazy load routes on Vue
with Webpack dynamic comments 🔮
Each branch has its own router code. There are 5 branches:
main: Routes without lazy loading.
lazy-load: Lazy loading routes with randomly generated hashed chunks.
lazy-load-named-chunks: Lazy loading routes with manually generated named chunks.
lazy-load-named-chunks-request: Lazy loading routes with dynamically generated named chunks.
lazy-load-grouped-chunks: Lazy loading routes grouped into two separate chunks.
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
See Configuration Reference.
Twitter · Instagram · Twitch · YouTube · GitHub