jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Support for using GET vars on js files #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when loading a framework like scriptaculous.js its often used like this

<script type="text/javascript" src="/scriptaculous.js?load=effects"></script>

Upon doing this, with multiple JS files comma delimited, it seems to screw
up minify

Original issue reported on code.google.com by jigg...@gmail.com on 11 May 2007 at 12:47

GoogleCodeExporter commented 9 years ago

Original comment by rgr...@gmail.com on 28 Aug 2007 at 5:26

GoogleCodeExporter commented 9 years ago
You'd probably have to maintain a patched scriptaculous.js. It probably has 
code to 
look for itself in the src attributes of all script elements. This code would 
have 
to be altered to match against your minify URLs.

Original comment by stephen....@gmail.com on 21 Sep 2007 at 4:56

GoogleCodeExporter commented 9 years ago
Using v2 you could specify your files from PATH_INFO (with a custom script) and 
call
Minify::serve() with the Files controller[1], allowing a URL like:

/m.php/prototype.js/scriptaculous.js?load=effects

[1] 
http://code.google.com/p/minify/source/browse/trunk/lib/Minify/Controller/Files.
php

Original comment by mrclay....@gmail.com on 29 Feb 2008 at 1:06