Skip to content

Commit f4c5d2d

Browse files
Fix to previous javascript filename in CHANGELOG (#1575)
We made a small mistake in the v10 upgrade guide by saying that the javascripts path in the templates used to be `nhsuk-frontend.min.js` but it actually used to be `nhsuk.min.js`. We've also realised that the path prefix is not necessarily `/javascripts/` but can vary depending on your setup (eg the NHS prototype kit uses `/nhsuk-frontend/`). So this makes that clearer by using `<JAVASCRIPTS-PATH>` to hopefully make it clear that that bit isn't part of the upgrade guidance.
1 parent 629728e commit f4c5d2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,17 +362,17 @@ Before:
362362

363363
```html
364364
<!-- // ... -->
365-
<script src="/javascripts/nhsuk-frontend.min.js" defer></script>
365+
<script src="/<JAVASCRIPTS-PATH>/nhsuk.min.js" defer></script>
366366
</head>
367367
```
368368

369369
After:
370370

371371
```html
372372
<!-- // ... -->
373-
<script type="module" src="/javascripts/nhsuk-frontend.min.js"></script>
373+
<script type="module" src="/<JAVASCRIPTS-PATH>/nhsuk.min.js"></script>
374374
<script type="module">
375-
import { initAll } from '/javascripts/nhsuk-frontend.min.js'
375+
import { initAll } from '/<JAVASCRIPTS-PATH>/nhsuk-frontend.min.js'
376376
initAll()
377377
</script>
378378
</body>
@@ -382,7 +382,7 @@ Or for [JavaScript imported using a bundler](#using-a-javascript-bundler), initi
382382

383383
```html
384384
<!-- // ... -->
385-
<script type="module" src="/javascripts/application.min.js"></script>
385+
<script type="module" src="/<JAVASCRIPTS-PATH>/application.min.js"></script>
386386
</body>
387387
```
388388

0 commit comments

Comments
 (0)