sailscastshq / boring-stack

Ship JavaScript products with battle-tested technologies in days not weeks.
https://docs.sailscasts.com/boring-stack/getting-started
MIT License
390 stars 19 forks source link

Update templates to use Shipwright 0.2.0 #109

Closed DominusKelvin closed 3 months ago

DominusKelvin commented 3 months ago

Description

Shipwright 0.2.0 brings some goodies that will improve the DX and UX of apps built with TBJS ...

Current behavior

You have to manually update the version query string in your template so as to burst the browser cache when your app has new updates. All your JavaScript code and in one app.js file this means for each change the browser has to download that file again ...

Expected behavior

Inject the scripts and styles dynamically. Use a good chunk splitting strategy ...

Replace space in square bracket with x e.g [x]