h5bp/node-build-script — Issue #7: Switching between non-minified and minified versions of jQuery
Author: KingScooty
Created: 2012-02-25 12:56:06+00:00
State: open

So i've started to look into this issue. The most straight forward answer is to switch between non-minified and minified versions of the Google CDN hosted file, while falling back to the permanently minified locally hosted one:

Index.html:

usemin.js:

log.writeln('switch from a regular jquery to minified');
content = content.replace(//gm, function(match, prefix) {
return '';
});

But this is **far from ideal**.

1. The jQuery version number for both files should be controlled from the markup `*.html /footer.php`.

2. The HTML comments add control and insight on the development version of index.html, so they should be kept (in some form or another), and stripped out during build.