dcodeIO / Preprocessor.js

A JavaScript source file preprocessor in pure JavaScript, e.g. to build different versions of a library.
http://dcode.io
Apache License 2.0
72 stars 19 forks source link

relative include #6

Open futagoza opened 10 years ago

futagoza commented 10 years ago

made the include directive work based on files directory

dcodeIO commented 10 years ago

I think this should be applied only if the file name begins with ./ to maintain backward compatibility in the 1.X branch.

Another option could be to change it entirely to relative paths by default, using the base directory only on / in some sort of 2.X.