142 |
161 | {% for viteConfig in viteConfigs %}
162 | {% if loop.length > 1 %}
163 |
{{ viteConfig.configName }}
164 | {% endif %}
165 | {% for groupKey, groupValues in viteConfig.content %}
166 |
167 |
168 |
169 | | {{ groupKey }} |
170 |
171 |
172 |
173 | {% for key, value in groupValues %}
174 |
175 | | {{ key }} |
176 | {{ value | symfonyvite_stringify }} |
177 |
178 | {% endfor %}
179 |
180 |
181 | {% else %}
182 |
Your Vite Dev server is not running.
183 | {% endfor %}
184 |
185 | {% endfor %}
186 |
187 |
188 |
189 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # `pentatrion/vite-bundle` / `vite-plugin-symfony` Changelog
2 |
3 | ## v8.2.3
4 |
5 | - Add support for Symfony 8 ([@skmedix](https://github.com/skmedix))
6 |
7 | ## v8.2.2
8 |
9 | - vite-plugin-symfony: Support use modernPolyfills option in @vitejs/plugin-legacy ([@twodogwang](https://github.com/twodogwang))
10 |
11 | ## v8.2.1
12 |
13 | - fix #83 asset twig method not using entrypoints baseUrl ([@micheh](https://github.com/micheh))
14 |
15 | ## v8.2.0
16 |
17 | - add vite 7 support
18 |
19 | ## v8.1.1
20 |
21 | - vite-plugin-symfony fix #75 allow users to override server.watch.ignored ([@robinsimonklein](https://github.com/robinsimonklein))
22 |
23 | ## v8.1.0
24 |
25 | stimulus with svelte : update to svelte 5 ([@faldor20](https://github.com/faldor20))
26 |
27 | ## v8.0.2
28 |
29 | - vite-bundle fix #62 can't use environment variables for default_config
30 |
31 | ## v8.0.1
32 |
33 | - vite-plugin-symfony fix #60 move postinstall hook to pre-dev.
34 |
35 | ## v8.0.0
36 |
37 | - stimulus fix hmr option from `VitePluginSymfonyStimulusOptions`
38 | - stimulus fix hmr with lazy loaded controllers
39 | - stimulus prevent hmr when controller is not already registered (#56)
40 | - stimulus add `controllersDir` option to prevent analyse Stimulus meta for other files.
41 |
42 | ## v7.1.0
43 |
44 | - allow Vite 6 as peer dependency ([@skmedix](https://github.com/skmedix))
45 |
46 | ## v7.0.5
47 |
48 | - add origin to internal tags ([@seggewiss](https://github.com/seggewiss))
49 |
50 | ## v7.0.4
51 |
52 | - fix use `proxy_origin` in Debugger if configured (@andyexeter)
53 |
54 | ## v7.0.3
55 |
56 | - stimulus fix import.meta regex to support comments
57 |
58 | ## v7.0.2
59 |
60 | - stimulus plugin check module entrypoint inside controllers.json
61 | - fix vite-plugin-symfony partial options TypeScript type.
62 |
63 | ## v7.0.1
64 |
65 | - fix Symfony try to register twice `TypeExtension`.
66 |
67 | ## v7.0.0
68 |
69 | - new Profiler
70 | - change crossorin default value
71 | - better `PreloadAssetsEventListener`
72 | - stimulus refactorisation
73 |
74 | ## v6.5.3
75 |
76 | - fix vite-plugin-symfony tsup export when package is ESM.
77 |
78 | ## v6.5.2
79 |
80 | - fix dummy-non-existing-folder to be created when used with vitest UI.
81 |
82 | ## v6.5.1
83 |
84 | - fix overriding types from '@hotwired/stimulus'
85 |
86 | ## v6.5.0
87 |
88 | - move v6.4.7 to 6.5.0 : flex recipes accept only minor version number (not patch).
89 |
90 | ## v6.4.7
91 |
92 | - vite-bundle : prepare v7 flex recipe add pentatrion_vite.yaml route file into install directory
93 |
94 | ## v6.4.6
95 |
96 | - vite-bundle : add throw_on_missing_asset option
97 |
98 | ## v6.4.5
99 |
100 | - vite-bundle : fix Crossorigin attribute needs adding to Link headers (@andyexeter)
101 | - vite-bundle : Skip devServer lookup if proxy is defined (@Blackskyliner)
102 | - vite-bundle : fix typo in error message when outDir is outside project root (@acran)
103 |
104 | ## v6.4.4
105 |
106 | - vite-plugin-symfony : fix typo in error message when outDir is outside project root (@acran)
107 | - vite-plugin-symfony : revert emptying `outDir` in dev mode (thanks @nlemoine)
108 |
109 | ## v6.4.3
110 |
111 | - vite-bundle : fix deprecation warning with `configs` key in multiple config.
112 |
113 | ## v6.4.2
114 |
115 | - doc add https tip with symfony cli certificate. (@nlemoine)
116 | - fixed symfony/ux-react inability to load tsx components (@vladcos)
117 |
118 | ## v6.4.1
119 |
120 | - fix import.meta in cjs env
121 | - vite-plugin-symfony : fix Displaying the statuses of Stimulus controllers in production https://github.com/lhapaipai/vite-plugin-symfony/issues/38
122 |
123 | ## v6.4.0
124 |
125 | - vite-plugin-symfony : add exposedEnvVars option
126 | - vite-plugin-symfony : fix enforcePluginOrderingPosition https://github.com/lhapaipai/vite-bundle/issues/80
127 | ## v6.3.6
128 |
129 | - fix crossorigin attribute to Link header for scripts with type=module (@andyexeter)
130 |
131 | ## v6.3.5
132 |
133 | - fix vite-plugin-symfony support having externals dependencies.
134 | - increase vite-bundle php minimum compatibility to 8.0
135 | no major version because the bundle was unusable with php 7.4 because of mixed type.
136 |
137 | ## v6.3.4
138 |
139 | - Use Request::getUriForPath to build absolute URLs (@andyexeter)
140 | - Formatting fix in vite printUrls output (@andyexeter)
141 |
142 | ## v6.3.3
143 |
144 | - Fix dark mode issue with background
145 | - Fix worker mode (kernel.reset)
146 |
147 | ## v6.3.2
148 |
149 | - Moving package manager to pnpm
150 |
151 | ## v6.3.1
152 |
153 | - Fix React/Vue/Svelte dependencies with Stimulus helper (@santos-pierre)
154 | - vite-plugin-symfony Update dependencies
155 |
156 | ## v6.3.0
157 |
158 | - stimulus HMR
159 | - fix bug : stimulus restart vite dev server when controllers.json is updated
160 | - split vite-plugin-symfony into 2 plugins `vite-plugin-symfony-entrypoints` and `vite-plugin-symfony-stimulus`.
161 | - add new tests to vite-plugin-symfony
162 | - doc : add mermaid charts
163 |
164 | ## v6.2.0
165 |
166 | - fix #77 support Vite 5.x
167 |
168 | ## v6.1.3
169 |
170 | - fix #34 set warning when setting a build directory outside of your project
171 |
172 | ## v6.1.2
173 |
174 | - stimulus lazy controllers enhancement
175 | - Fix : prevent virtual controllers.json prebundling
176 | - Fix : Change dependency to the non-internal ServiceLocator class (@NanoSector)
177 | - Fix : Carelessly setting the outDir folder leads to recursive deletion (@Huppys)
178 |
179 | ## v6.1.0
180 |
181 | - add Stimulus and Symfony UX Integration
182 |
183 | ## v6.0.1
184 |
185 | - add `enforceServerOriginAfterListening`
186 |
187 | ## v6.0.0
188 |
189 | - make services privates.
190 | - add tests for EntrypointRenderer, EntrypointsLookup and TagRenderer.
191 | - add preload option (symfony/web-link)
192 | - add cache option
193 | - add crossorigin option
194 | - add preload_attributes option
195 | - change default_build/builds to default_config/configs
196 | - fix baseUrl to files #67
197 | - refactor RenderAssetTagEvent
198 |
199 | ## v5.0.1
200 |
201 | - remove deprecated options
202 | - fix `absolute_url` error in `shouldUseAbsoluteURL`.
203 |
204 | ## v5.0.0
205 |
206 | - change `entrypoints.json` property `isProd` to `isBuild` because you can be in dev env and want to build your js files.
207 |
208 | ## v4.3.2
209 |
210 | - fix #26 TypeError when no root option (@andyexeter)
211 |
212 | ## v4.3.1
213 |
214 | - add vendor, var and public to ignored directory for file watcher.
215 |
216 | ## v4.3.0
217 |
218 | - add `absolute_url` bundle option.
219 | - add `absolute_url` twig option. (@drazik)
220 |
221 | ## v4.2.0
222 |
223 | - add enforcePluginOrderingPosition option
224 | - fix Integrity hash issue
225 | - add `vite_mode` twig function
226 |
227 | ## v4.1.0
228 |
229 | - add `originOverride` (@elliason)
230 | - deprecate `viteDevServerHostname`
231 |
232 | ## v4.0.2
233 |
234 | - fix #24 normalized path
235 |
236 | ## v4.0.1
237 |
238 | - fix conditional imports generate modulepreloads for everything
239 |
240 | ## v4.0.0
241 |
242 | - add `sriAlgorithm`
243 | - fix react refresh when vite client is returned
244 | - add CDN feature
245 |
246 | ## v3.3.2
247 |
248 | - fix #16 entrypoints outside vite root directory
249 |
250 | ## v3.3.1
251 |
252 | - fix circular reference with imports.
253 | - deprecate `public_dir` / `base`
254 | - add `public_directory` / `build_directory`
255 |
256 | ## v3.3.0
257 |
258 | - add tests
259 | - versionning synchronization between pentatrion/vite-bundle and vite-plugin-symfony
260 |
261 | ---
262 |
263 | before version 3.3 the versions of ViteBundle and vite-plugin-symfony were not synchronized
264 |
265 |
266 | # `pentatrion/vite-bundle` Changelog
267 |
268 | ## v3.2.0
269 |
270 | - add throw_on_missing_entry option (@Magiczne)
271 |
272 | ## v3.1.4
273 |
274 | - add proxy_origin option (@FluffyDiscord)
275 |
276 | ## v3.1.0
277 |
278 | - allow vite multiple configuration files
279 |
280 | ## v3.0.0
281 |
282 | - Add vite 4 compatibility
283 |
284 | ## v2.2.1
285 |
286 | - the choice of the vite dev server port is no longer strict, if it is already used the application will use the next available port.
287 |
288 | ## v2.2.0
289 |
290 | - add extra attributes to script/link tags
291 |
292 | ## v2.1.1
293 |
294 | - update documentation, update with vite-plugin-symfony v0.6.0
295 |
296 | ## v2.1.0
297 |
298 | - add CSS Entrypoints management to prevent FOUC.
299 |
300 | ## v1.1.4
301 |
302 | - add EntrypointsLookup / EntrypointsRenderer as a service.
303 |
304 | ## v1.1.0
305 |
306 | - Add public_dir conf
307 |
308 | ## v1.0.2
309 |
310 | - fix vite.config path error with windows
311 |
312 | ## v1.0.1
313 |
314 | - fix exception when entrypoints.json is missing
315 |
316 | ## v1.0.0
317 |
318 | - Twig functions refer to named entry points not js file
319 | - Add vite-plugin-symfony
320 |
321 | ## v0.2.0
322 |
323 | Add proxy Controller
324 |
325 |
326 | ---
327 |
328 | # `vite-plugin-symfony` changelog
329 |
330 | ## v0.6.3
331 |
332 | - takes into account vite legacy plugin.
333 |
334 | ## v0.6.2
335 |
336 | - add `viteDevServerHost` plugin option
337 |
338 | ## v0.6.1
339 |
340 | - remove `strictPort: true`
341 |
342 | ## v0.6.0
343 |
344 | - add `publicDirectory`, `buildDirectory`, `refresh`, `verbose` plugin option
345 | - add `dev-server-404.html` page
346 |
347 | ## v0.5.2
348 |
349 | - add `servePublic` plugin option
350 |
--------------------------------------------------------------------------------
/src/DependencyInjection/PentatrionViteExtension.php:
--------------------------------------------------------------------------------
1 | ,
28 | * link_attributes: array