I’d like to optimize my production site so that for instance css-files are load-time-optimized (reduced to one file, unused rules removed, …) In order to transform those css files from Sass to production level I use a number of gulp transformations.
It would be great, if I could have in my templates a condition, that renders different links to css and js reccources.
On dev I would like to see rather the unmerged files to efficiently identify where some problem occurs.
On test and dev I would like to have the merged/optmized files linked.
[details=Example for Development]```
Carbon:
IncludeAssets:
General:
Head:
- GeneralHead.debug.css
- AboveTheFold.debug.css[inline]
- GeneralHead.debug.js[async defer]
Body:
- GeneralBody.debug.js[async defer]
- AdditionSpecialFancyTracking.debug.js[inline]
```[/details]
**But**
I would include Sourcemaps to your build pipleline. Like that you'll see in which file the error happen. And if you use something like https://rollbar.com/ you get even on Production pages good error reports…