Skip to content

Commit

Permalink
use inertia progress
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 18, 2021
1 parent 12d5e98 commit c1f1fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/InstallCommand.php
Expand Up @@ -270,6 +270,7 @@ protected function installInertiaStack()
return [
'@inertiajs/inertia' => '^0.8.4',
'@inertiajs/inertia-vue3' => '^0.3.5',
'@inertiajs/progress' => '^0.2.4',
'@tailwindcss/forms' => '^0.2.1',
'@tailwindcss/typography' => '^0.3.0',
'postcss-import' => '^12.0.1',
Expand Down
3 changes: 3 additions & 0 deletions stubs/inertia/resources/js/app.js
Expand Up @@ -3,6 +3,7 @@ require('./bootstrap');
// Import modules...
import { createApp, h } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';

const el = document.getElementById('app');

Expand All @@ -16,3 +17,5 @@ createApp({
.mixin({ methods: { route } })
.use(InertiaPlugin)
.mount(el);

InertiaProgress.init({ color: '#4B5563' });

0 comments on commit c1f1fa0

Please sign in to comment.