RC-Paves3-build / plovr

Automatically exported from code.google.com/p/plovr
0 stars 0 forks source link

Serving static files along with compilation #81

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be helpful if plovr's serve command allowed access to the static  
resources defined in the stylesheet.. I generally use sass, but its useful to 
have these outputs all collected and defined in the plovr config file; allowing 
some variability if i switch config, etc.

Let's say http://localhost:9810/css/<projectid>/compiled (instead of 
http://localhost:9810/css/<projectid>) was the css output.

A request to anything excluding "compiled" and ".." would have a path 
prepended, as defined by some config var (css_static?). The file would be 
served if its found at css_static/suffix.

Accesses to  static files could then be defined in stylesheets with relative 
paths, or, a variable could be set up to prefix the paths on a 
development/production environment basis.

Is there some other builtin way to do this without running a secondary server?

Original issue reported on code.google.com by nate.sku...@gmail.com on 21 Feb 2013 at 8:24