Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

kendoui and webpack how to load jszip

$
0
0

Sorry for this auto-answer, but I'm still new to webpack and I just came across a possible solution.

Since kendo is referencing JSZip as global, you have to use ProvidePlugin as following:

config.plugins.push(new webpack.ProvidePlugin({
  'JSZip': 'jszip',
  'window.JSZip': 'jszip' // this doesn't expose JSZip property for window, but exposes it to every module
}));

 

If you have a better way please let me know!

 

Thanks


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>