https://github.com/visualbean/vue-splash
https://github.com/visualbean/vue-splash
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/visualbean/vue-splash
- Owner: VisualBean
- License: unlicense
- Created: 2018-12-28T23:37:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:39:16.000Z (over 3 years ago)
- Last Synced: 2025-01-28T09:51:35.888Z (over 1 year ago)
- Language: Vue
- Size: 1.66 MB
- Stars: 8
- Watchers: 1
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-splash
The source used for my blogpost on creating a splash screen in vue https://visualbean.medium.com/simple-vue-splash-screen-f734b096d919
The basic idea is to simply add whichever splash/loading screen you want inside your hook point (`
`),
Once your app has completed loading whatever it needs (in `beforeMount` and `init`).
In this project we simply mimic loading time by adding
``` javascript
beforeMount() {
this.delay(5000);
},
```
to the hello world component.
## Project setup
```
yarn install
```
### Compiles and hot-reloads for development
```
yarn run serve
```
### Compiles and minifies for production
```
yarn run build
```
### Lints and fixes files
```
yarn run lint
```