webix-hub / webix-jet

Webix Jet micro framework for Webix UI
67 stars 19 forks source link

Question: full lazy loading. #41

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi. If I need to place all views and models into separate bundles. What project structure should I have? Do I need to place all files into modules folder or it can be resolved by changing some webpack config?

And is it preferred to use TypeScript for new project? Do you plan to rewrite webix lib on TS?

kullias commented 3 years ago

Hi!

1) For loading view modules on demand, you can import() them:

The structure can be as usual. In the example above, dynamically imported views were placed in a separate folder.

To see the sample in action, please get [jet-demos](), start the dev server and open http://localhost:8080/bundles/#!/main/about

2) No, you can use ES6 or TypeScript (actually, ES6 is the 'default' variant, and for TypeScript there are certain things you should do first, the demo can be found in this branch) No, there are no plans to rewrite Webix lib on TypeScript.

ghost commented 3 years ago

Thanks a lot! You are great.