[SOLVED] Plan to make Webix Jet works with webpack?

as title

I have checked, and it seems that Webix Jet can be switched to WebPack without any major changes in the code. I can provide a sample if necessary.

We do not plan to switch the default loader, though. RequireJs works without need for an extra building step, which is a major benefit.

Which extra features you want to use from WebPack for Webix Jet based app ?

Thanks maksim. Because I want to use commonjs, and I found that webpack can build AMD and commonjs, and provide more plugins to build js, such as typescript, less etc…

I have found JSPM can to all the things that I want

Hi Maksim,

I am also interested using Webix Jet with Webpack, so please send me a reference to the sample you mentioned previously.

Thank you.

Hi Maksim,

A feedback, please. I also sent you a pm.

Thank you.

Hi Maksim,

Can we get a feedback, please?

Thanks.

Any update on this topic?

Check POC of such migration: GitHub - kospiotr/webix-adminapp-flat-demo-webpack

Hi Piotr,

Thank you very much for the sample!

It looks very nice and the browser-sync provides a nice experience, similar with React dev cases.

@social4hyq

You may prefix this post’s title with [SOLVED] as it reflects the case.

Thanks

Hi, I am not able to modify the title.

@Maksim,

I’ve noticed that in these nice webpack based setups, the following error is thrown: Uncaught TypeError: Cannot read property ‘className’ of null

And the root cause is that document.body is not loaded when container: document.body (core.js:248) runs.

See an example at Webix Admin
(source: GitHub - kospiotr/webix-adminapp-material-demo-webpack: Demo of Webix MVC app, http://webix.com/demos/admin-app/)

I can add some checks in (Webix Jet) core.js, but I am wondering if this is really a bug or something else we should do in this webpack context?

Thanks