{
 "kind": "tool",
 "slug": "laravel-vite-plugin",
 "path": "tools/laravel-vite-plugin/",
 "name": "Laravel Vite Plugin",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Build tools and bundlers",
   "tools/build-tools/"
  ]
 ],
 "lead": "Official Vite plugin for Laravel to handle asset bundling and HMR.",
 "chips": [
  {
   "label": "Build tools and bundlers",
   "path": "tools/build-tools/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install laravel-vite-plugin"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/laravel/vite-plugin"
  },
  {
   "label": "Website",
   "href": "https://github.com/laravel/vite-plugin"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/laravel/vite-plugin"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 11, 2026",
   "note": "Latest GitHub release Nov 4, 2026. ",
   "src": "https://github.com/laravel/vite-plugin"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "172 projects",
   "status": "info",
   "sub": "#5 of 185 in its category",
   "note": "Dependency in 172 public GitHub projects set up for AI coding agents that we scanned (2.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Laravel Vite Plugin does",
   "parts": [
    {
     "t": "prose",
     "text": "Laravel Vite Plugin does one narrow job, setting up Vite for a Laravel backend server, and its README is only a pointer to the Laravel docs; the one builder write-up uses it outside Laravel, in a WordPress theme, to get the hot reloading he could not get from plain Vite."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Laravel Vite Plugin popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "54",
       "of": "/ 100",
       "l": "Gid Score, #1549 overall"
      },
      {
       "n": "3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "903",
       "l": "GitHub stars"
      },
      {
       "n": "172",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Laravel Vite Plugin is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Laravel Vite Plugin is a dependency in 172 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.5% of the 4,867 JavaScript/TypeScript ones), #5 of 185 in build tools and bundlers.",
      "Projects that use it most often also use Vite (100.0%), concurrently (87.2%), Tailwind CSS (97.7%).",
      "It is more common in projects set up for Junie (58.1%) than for GitHub Copilot (2.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "131 projects, 5.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "126 projects, 3.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "61 projects, 2.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "48 projects, 10.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "43 projects, 58.1%",
       "v": "Junie",
       "path": "agents/junie/"
      },
      {
       "l": "38 projects, 11.1%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "35 projects, 7.5%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "8 projects, 5.7%",
       "v": "Kiro",
       "path": "agents/kiro/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 100.0% of its projects",
       "v": "Vite",
       "path": "tools/vite/"
      },
      {
       "l": "In 87.2% of its projects",
       "v": "concurrently",
       "path": "tools/concurrently/"
      },
      {
       "l": "In 97.7% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 54.1% of its projects",
       "v": "Axios",
       "path": "tools/axios/"
      },
      {
       "l": "In 26.2% of its projects",
       "v": "Inertia.js React",
       "path": "tools/inertiajs-react/"
      },
      {
       "l": "In 42.4% of its projects",
       "v": "Prettier",
       "path": "tools/prettier/"
      },
      {
       "l": "In 20.9% of its projects",
       "v": "Vue",
       "path": "tools/vue/"
      },
      {
       "l": "In 20.3% of its projects",
       "v": "Headless UI",
       "path": "tools/headlessui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Laravel Vite Plugin in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "One stated job: Vite plus a Laravel backend",
       "v": "The README describes a single purpose. The plugin configures Vite so it works with a Laravel backend server."
      },
      {
       "l": "Plain Vite config, with extras for CORS, SSL and HMR",
       "v": "Marc Wieland writes that the plugin lets you do \"everything like in Vite\" and adds \"goodies\" for CORS, SSL and hot module reloading. He gives these as the reason he failed when setting things up with plain Vite and switched to the plugin. With his manual setup he had compilation working, but not hot reloading."
      },
      {
       "l": "Herd's SSL works with it",
       "v": "The same builder writes that \"Herd automatically supports Vite within the Laravel Vite plugin\". He says that once SSL is turned on for the project in Herd, \"you don't get annoying warnings\" from the browser about an insecure site."
      },
      {
       "l": "Dev server and Vitest fixes in v3.2.0",
       "v": "The latest release handles null addresses on the dev server. It also stops the plugin from cleaning up the hot file when Vitest runs."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The README has no instructions",
       "v": "The repository README has no setup steps and no options. It points to the Laravel website for documentation."
      },
      {
       "l": "No Blade outside Laravel, so you write the loader",
       "v": "In Laravel, a Blade directive injects the Vite scripts. In WordPress, the builder rebuilt that logic in PHP. His code checks for the dev server or reads <code>manifest.json</code> for the production files."
      },
      {
       "l": "APP_URL has to be set",
       "v": "The builder had to set <code>APP_URL</code> in his env file to his home URL. He says this is what makes the dev server point at his actual homepage."
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Laravel Vite Plugin",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Packages around it",
       "items": [
        "vite: Build tool the plugin configures",
        "concurrently: Runs several commands at once",
        "tailwindcss: Utility-first CSS framework",
        "axios: HTTP client",
        "@inertiajs/react: Inertia adapter for React",
        "prettier: Code formatter"
       ]
      },
      {
       "title": "More in Build tools and bundlers",
       "path": "tools/build-tools/",
       "items": [
        {
         "text": "Vite",
         "path": "tools/vite/"
        },
        {
         "text": "Turborepo",
         "path": "tools/turbo/"
        },
        {
         "text": "esbuild",
         "path": "tools/esbuild/"
        },
        {
         "text": "Babel (JavaScript)",
         "path": "tools/babel-npm/"
        },
        {
         "text": "React Compiler Babel Plugin",
         "path": "tools/babel-plugin-react-compiler/"
        },
        {
         "text": "Nx",
         "path": "tools/nx/"
        },
        {
         "text": "vite-tsconfig-paths",
         "path": "tools/vite-tsconfig-paths/"
        },
        {
         "text": "SWC",
         "path": "tools/swc-core/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Laravel Vite Plugin",
       "me": true,
       "facts": [
        "MIT",
        "Gid 54",
        "3M/wk"
       ]
      }
     ],
     "more": "Compare Laravel Vite Plugin with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install laravel-vite-plugin"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Laravel Vite Plugin\n- Use the official docs at https://laravel.com/docs/vite. The GitHub README has no usage details.\n- One builder's blog post, not the official docs, installs it as a dev dependency with `npm install laravel-vite-plugin --save-dev`. Check the official docs for the current install steps.\n- Register it in `vite.config.js` with `import laravel from 'laravel-vite-plugin'` and list entry files in the `input` array of `laravel({ ... })`. `publicDirectory` can be set there too.\n- In a Laravel app, Blade's Vite directive loads the assets. Outside Laravel there is no such directive, so the project has to write that loading code itself.\n- One builder's WordPress setup, not the official docs: check for a `hot` file in the theme's assets folder (his `publicDirectory`) to detect the running dev server. If it is missing, read `build/manifest.json` and load the hashed files.\n- Same WordPress setup: load `/@vite/client` and the entry script with `type=\"module\"`. The author calls this \"very important\".\n- Same WordPress setup: set `APP_URL` in the env file to the site's home URL before running `npm run dev`.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm laravel-vite-plugin"
  ],
  [
   "Category",
   "Build tools and bundlers"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v3.2.0, August 11, 2026"
  ],
  [
   "On GitHub since",
   "May 2022"
  ],
  [
   "Gid Score",
   "53.9"
  ],
  [
   "Rank in category",
   "#5 of 185"
  ],
  [
   "GitHub",
   "laravel/vite-plugin"
  ],
  [
   "Last change",
   "Nov 11, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/laravel.png"
}