
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
vite-plugin-symfony
Advanced tools
A Vite plugin to integrate easily Vite in your Symfony application..
entrypoints.json file inside your build directory with your js/css/preload dependencies.This package is intended for use with the Symfony Bundle : pentatrion/vite-bundle.
⚠️ This repository is a "subtree split": a read-only subset of that main repository symfony-vite-dev which delivers to packagist only the necessary code.
if you want to view the source code or open issues you are in the right place.
If you want to contribute, make PRs or consult examples you will have to go to the symfony-vite-dev repository.
npm i vite-plugin-symfony
Create this directory structure :
├──assets
│ ├──app.js
│ ├──app.css
│...
├──public
├──composer.json
├──package.json
├──vite.config.js
Vite base config with vite
// vite.config.js
import {defineConfig} from "vite";
import symfonyPlugin from "vite-plugin-symfony";
export default defineConfig({
plugins: [
symfonyPlugin(/* options */),
],
build: {
rollupOptions: {
input: {
app: "./assets/app.js" /* relative to the root option */
},
},
}
});
and your package.json :
{
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"vite": "^5.0",
"vite-plugin-symfony": "^6.3"
}
}
| Package | Description |
|---|---|
| vite-bundle | Symfony Bundle (read-only) |
| vite-plugin-symfony | Vite plugin (read-only) |
| symfony-vite-dev | Package for contributors |
MIT.
FAQs
A Vite plugin to integrate easily Vite in your Symfony application
The npm package vite-plugin-symfony receives a total of 19,043 weekly downloads. As such, vite-plugin-symfony popularity was classified as popular.
We found that vite-plugin-symfony demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.