Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example of code splitting in Vue app with webpack and dynamic imports

License

NotificationsYou must be signed in to change notification settings

ditdot-dev/vue-code-splitting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code splitting example app that demonstrates creating multiple code bundles with dynamic import statements.

Example of code splitting in Vue based on computed property and dynamic components. The initial load contains the initial view and critical assets, while other modules are loaded on the button press.

Features

  • when the data changes, the computed property will re-evaluate
  • dynamic component switches between the imported components after the computed property change
  • default Vue CLI prefetch function is disabled in vue.config.js - components are loaded on demand, as the user navigates the application

Article

Clone

Clone this repo to your local machine

$ git clone https://github.com/ditdot-dev/vue-code-splitting.git

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

SeeConfiguration Reference.

License

MIT license.

About

Example of code splitting in Vue app with webpack and dynamic imports

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp