Deliver a nice experience, which includes performance
To balance these two desires, I want to propose serving minified CSS/JS assets, while providing a non-minified experience that devs can peek through.
I'm thinking that the demo author will have a grunt watch process running, hooked up to uglify and cssmin. These will concatenate and minify the demo template JS/CSS with the demo-specific JS/CSS. The un-minified versions will of course be accessible through the repo, but we can also have a code comment with the file name in the head of the demo, OR perhaps there is some way to insert this into the minified files w/o also having this portion itself minified.
With these demos, we want to:
To balance these two desires, I want to propose serving minified CSS/JS assets, while providing a non-minified experience that devs can peek through.
I'm thinking that the demo author will have a grunt watch process running, hooked up to uglify and cssmin. These will concatenate and minify the demo template JS/CSS with the demo-specific JS/CSS. The un-minified versions will of course be accessible through the repo, but we can also have a code comment with the file name in the head of the demo, OR perhaps there is some way to insert this into the minified files w/o also having this portion itself minified.
@molant thoughts? Issues with this?