Closed szepeviktor closed 10 years ago
curl.js should load and evaluate main automatically when included in the config. You should not have to use preloads.
FWIW, you should not include the ".js" on "main" since curl assumes it's a module. "main":"js/main".
Hmmm... i see that main.js defines a named module, named "main". This doesn't match what's in the config: "js/main". Can you use an anonymous define() in main.js? Or name it "js/main"?
Thank you!
I moved js/
paths to baseUrl, and removed .js
-s.
How to name minified scripts? 'script.min' does not load.
You must map a path to a named module if name!=path.
paths.main="script.min"
I guess you could have done that (mapped a path) rather than move main.js. :)
I mean I've appended /js
to baseURL
Ah ok. I see. Try mapping a path to the minified script and let m know if that works. :)
:) Oh I realized that the path main: 'main'
makes no sense.
but main: 'main.min'
works!!
Is it OK to use curl's 'preloads' for starting my app?
And please tell me what is the official way in the main module to "autostart"? do not look at it: http://www.atlantisct.tk/wp-content/themes/act/js/main.js