paulirish/html5-boilerplate — Issue #820: Preserve the authored version of css, js, HTML. View Source has a posse.
Author: paulirish
Created: 2011-10-22 22:53:30+00:00
State: open

Was thinking about this today.. and [seems that others are, as well](http://friedcellcollective.net/outbreak/2010/11/19/view-source-alliance/)...

Delivering the smallest payload to the user is definitely the best possible choice, yet we all learned from and love View Source. So what I'm thinking is we use a convention so the files are discoverable. Meanwhile this convention could be proposed so there is tooling support and view-source can grab the originals...

I'm thinking.. just a simple `.full` suffix on the filename. (before the extension)

* `style-1ad4f44e.css` → `style-1ad4f44e.full.css`
* `style-1ad4f44e.min.css` → `style-1ad4f44e.full.css`
* `index.html` → `index.full.html`
* `script-a4f3b31a.js` → `script-a4f3b31a.full.js`

The `min` convention has come into its own, but it hits problems with minified HTML, as we dont change the filename in that case. Really we don't need to add a `min` into filenames at all, assuming a reasonable build process (plus it's more bytes, omg!).

If people like this, then we can do it here in H5BP and start moving to push it as a wider convention. (It could be baked into Uglify, YUI Compressor, Closure Compiler, and all those tools...)