1) Allows our JS files to easily be minified, concatenated
2) Allows us to use "modern JS" and compile it back to target browsers
3) Opens up the opportunity to use React, Vue, Svelte etc....
Key thing - you don't need to know how to config Webpack to use this that's all managed a layer above (cds-snc/webpack-starter)
This adds webpack to the starter by default.
1) Allows our JS files to easily be minified, concatenated 2) Allows us to use "modern JS" and compile it back to target browsers 3) Opens up the opportunity to use React, Vue, Svelte etc....
Key thing - you don't need to know how to config Webpack to use this that's all managed a layer above (cds-snc/webpack-starter)
To use:
Add your entry to the Webpack config:
Use the file(s) in your route