Custom Kendo css+js build from npm package

1 Answer 23 Views
General Discussions
René
Top achievements
Rank 2
René asked on 19 May 2021, 07:30 AM

Hello, I have maybe little complicated question.

We are using Kendo Professional sources to build custom version of Kendo. We have custom CSS modifications and some JS components selections.  So when there is a new version, we just get zip with sources from Telerik profile and run modified gulp pipeline. All works fine.

But I'm trying to little more automatic process and I want to use npm package as source. Installed @progress/kendo-ui and used sources in build.

Well, css files seems to be ok, because it is just less compilation. But how to process JS? In downloaded zip file, all JS are for jQuery. But in npm all are as module exports. So I can't use existing gulp tasks to just get custom build.

Is there any way how to use npm and build kendo for pure jQuery use? No Webpack etc.

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 21 May 2021, 09:21 AM

Hi,

The provided NPM package is designed to work with module loaders such as WebPack. As it is described in the Installing with NPM article linked below: The scripts in the NPM package are not usable in the browser. To work around this issue, use a bundler such as WebPack. 

- https://docs.telerik.com/kendo-ui/intro/installation/npm#installing-with-npm

Thus, I am afraid that the scripts provided through the NPM package could not be used without a module loader.

Regards,
Neli
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
General Discussions
Asked by
René
Top achievements
Rank 2
Answers by
Neli
Telerik team
Share this question
or