Commit 1acf498
authored
[Website] Move dynamic extension files in assets/extensions directory (#2984)
## Motivation for the change, related issues
Currently, when displaying the [assets-required-for-offline-mode.json
file](https://playground.wordpress.net/assets-required-for-offline-mode.json),
Intl dynamic extension files are present. This is due to dynamic
importing and Vite builds automatically assigning these files in the
assets directory.
This pull request aims to move these files in the `assets/extensions`
directory, an ignored directory for offline mode assets.
## Implementation details
Added `chunkFileNames` and `assetFileNames` hooks in :
- `packages/playground/website/vite.config.ts`
- `packages/playground/remote/vite.config.ts`
## Testing Instructions (or ideally a Blueprint)
run :
```
nx reset && nx run playground-website:build:standalone
```
You'll find the new file in
`dist/packages/playground/website/assets-required-for-offline-mode.json`1 parent dc1d12b commit 1acf498
1 file changed
+39
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
108 | 131 | | |
109 | 132 | | |
110 | 133 | | |
| |||
128 | 151 | | |
129 | 152 | | |
130 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
131 | 168 | | |
132 | 169 | | |
133 | 170 | | |
| |||
0 commit comments