Meteor.js serve javascript files without (function() { ... }).call(this) -
the title should self explanatory, there way meteor serve javascript file without stuffing (function() { <<code>> }).call(this)
?
i wrote app relies on javascript objects each stored in own file , instantiated when ready used. however, because of aforementioned problem, isolated , unable viewed outside files.
the option have come store them plaintext , load them using http request , store them main file. missing easier way.
if need code, let me know, think general enough not warrant any.
--edit--
i wrote standalone html page, decided go out , use meteor make full-blown web app.
its not idea try , javascript file way because when deploy app or set production mode on, javascript files , html files minified single js file & wouldn't exist normal locations during development anymore:
if want javascript file untouched meteor need put in folder called /public
in projects root directory.
if more interested in whats inside javascript files opposed getting them filename might want switch devel
branch of meteor, or wait never version after 0.6.2.1 , put javascript files in /client/compatibility/
these files not variable scoped & still automatically referenced unlike /public
dir.
Comments
Post a Comment