Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : steal/build produces an empty production.js file

$
0
0
When you are using any dependency management solution, things start to get hairy when you load files outside of the loader.

I would start by creating a main JS file that serves as the entry point for your application. Then the only script tag you need is steal with a query parameter pointing to that entry point like:
  1. <script src="steal/steal.js?app/app.js"></script>
The main file would steal mootools, can and ucp2 and then have the code from line 181 in the callback.

Every other file in your application needs to steal all of its dependencies as well. Don't worry about duplicates, because steal is smart enough to know what has already loaded.

Viewing all articles
Browse latest Browse all 3491

Trending Articles