Commit c737732
committed
minor #8494 Changes manifest file extension from json to js. (Cifixie)
This PR was submitted for the master branch but it was merged into the 3.3 branch instead (closes #8494).
Discussion
----------
Changes manifest file extension from json to js.
JSON as itself isn't valid Javascript causing an error when trying to parse as javascript: `manifest.json:2 Uncaught SyntaxError: Unexpected token :` and it's only meant for Symfony asset versioning.
The bundler also creates `manifest.js` -file which creates `window.webpackJsonp` used in bundles. Without it, you might get an error: `app.315f91d41365513eb8ea.js:1 Uncaught ReferenceError: webpackJsonp is not defined`
Commits
-------
5d13c37 Changes manifest file extension from json to js.File tree
1 file changed
+2
-2
lines changed- frontend/encore
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments