I cannot build my app... Lost 3 days searching :(, so any help is welcome !
Something must be wrong with steal.build code or doc (or more probably with my code)
If I do not use packages, with something like :
Production.js contains only:
If I use packages (following the way the doc tells, I think) with something like :
==> In both cases, dev mode runs ok.
Can you tell me what can generate this behavior ? How can I go further in looking for my mistakes ?
Thanks for help.
Something must be wrong with steal.build code or doc (or more probably with my code)
If I do not use packages, with something like :
- steal('jquery', 'app/ctrl/main', 'app/ctrl/login', 'model/server',
- function($, Main, Login, Server) {
- $(document).ready(function() {
- Server.ping(function(usr) {
- new Main('#container', {user: usr});
- },
- function(jqXHR, textStatus, errorThrown) {
- new Login('#container', {});
- });
- });
Production.js contains only:
- steal.packages({});
If I use packages (following the way the doc tells, I think) with something like :
- steal.packages('app/ctrl/main', 'app/ctrl/login');
steal('jquery', 'model/server',
function($, Server) {
// =====================
$(document).ready(function() {
Server.ping(function(usr) {
steal('app/ctrl/main', function(Main) {
new Main('#container', {user: usr});
});
},
function(jqXHR, textStatus, errorThrown) {
steal('app/ctrl/login', function(Login) {
new Login('#container', {});
});
});
});
});
==> In both cases, dev mode runs ok.
Can you tell me what can generate this behavior ? How can I go further in looking for my mistakes ?
Thanks for help.