- Notifications
You must be signed in to change notification settings - Fork1
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
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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.
- 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
Clone this repo to your local machine
$ git clone https://github.com/ditdot-dev/vue-code-splitting.git
npm installnpm run servenpm run buildnpm run lintMIT license.
About
Example of code splitting in Vue app with webpack and dynamic imports
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors3
Uh oh!
There was an error while loading.Please reload this page.