diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index bce3fed86..8abbd3959 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -12,14 +12,23 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e with: php-version: '8.2' - - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'yarn' - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Install NPM Dependencies + run: yarn install --frozen-lockfile + - name: Build Assets + run: yarn build - name: Generate key run: php artisan key:generate - name: Directory Permissions diff --git a/.gitignore b/.gitignore index bd6defef4..b270b9b07 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /node_modules /public/hot /public/storage +/public/build /storage/*.key /vendor .env diff --git a/storage/debugbar/.gitignore b/storage/debugbar/.gitignore old mode 100644 new mode 100755 diff --git a/vite.config.js b/vite.config.js index 582ff90a1..eee7834f8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -43,13 +43,7 @@ export default defineConfig({ } }, // Enable minification - minify: 'terser', - terserOptions: { - compress: { - drop_console: true, // Remove console.log in production - drop_debugger: true, - } - } + minify: 'esbuild', }, // Enable CSS optimization css: {