I'm trying to build a new Ext 5.1 app using Node.js. Everything is loading fine in the browser when using the index.html file and microloader, until it gets to the first app view (view/Main.js).
My index.html page loads fine (I know you can't get to that url, just pointing out the path structure from the browser perspective):
The bootstrap.js and .json, and a ton of css/js files and even my new app file loaded correctly:
Any ideas?
Cmd relative path issue
Here is the code structure of my web project:
HTML Code:
myproject/static/App/*
myproject/views/index.html
My index.html page loads fine (I know you can't get to that url, just pointing out the path structure from the browser perspective):
Since I updated app.json to handle relative paths per the docs:
Code:
"indexHtmlPath": "../../views/index.html",
The bootstrap.js and .json, and a ton of css/js files and even my new app file loaded correctly:
but it fails once it gets to my actual app, since its going to the wrong directory:
but the bootstrap.json file correctly tells it to load the relative path to ../static/:
Code:
{"paths":{"App.Application":"../static/App/app/Application.js","App.view.main.Main":"../static/App/app/view/main/Main.js",
....
Any ideas?
Also, should I consider just doing 'sencha app watch' and using a development build (is that fast enough on a large app and decent machine to not wait for changes to a few controllers/views to process?)
Thanks!
Cmd relative path issue
Aucun commentaire:
Enregistrer un commentaire