Skip to content

Commit

Permalink
add cache to deploy and import app.js instead of app.css
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Feb 20, 2024
1 parent 2580c64 commit 6f65efa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ jobs:
if: github.ref == 'refs/heads/main'
run: php -r "file_exists('.env') || copy('.env.production.example', '.env');"

- name: Production Optimisations
if: github.ref == 'refs/heads/main'
run: |
php artisan route:cache
php artisan view:cache
php artisan config:cache
- name: Echo information to .env
if: github.ref == 'refs/heads/main'
run: |
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/main.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>

@vite('resources/css/app.css')
@vite('resources/js/app.js')

@livewireStyles
</head>

Expand Down

0 comments on commit 6f65efa

Please sign in to comment.