Hi,
the bundle size is too big (is about 11 Mb), is any way to make it smaller?
Bundle size is too big
-
- Posts: 682
- Joined: Tue Sep 07, 2021 10:11 am
Re: Bundle size is too big
Hello,
We are always working on reducing the bundle size. If you want, you can use pack.js files in your project, these files are smaller in size.
Thank you.
We are always working on reducing the bundle size. If you want, you can use pack.js files in your project, these files are smaller in size.
Thank you.
Re: Bundle size is too big
Thank you Max, but how to use packed version with angular?
-
- Posts: 682
- Joined: Tue Sep 07, 2021 10:11 am
Re: Bundle size is too big
Hello,
Unfortunatley packed version can be only used in native js.
Thank you.
Unfortunatley packed version can be only used in native js.
Thank you.
Re: Bundle size is too big
I did some research and found that *.pack.js is packed original script by Brotli, as all our requests are JZipped the overall difference is around 20 percents only, so it's not much.
Anyway, it's possible to use Angular imports from pack-files this way:
Upd: please, add corresponding ts definitions for *.pack.js files (stimulsoft.designer.pack.d.ts for ex) as IDE cannot find ts definition for pack files
Anyway, it's possible to use Angular imports from pack-files this way:
Code: Select all
import {
Stimulsoft,
StiOptions
} from 'stimulsoft-dashboards-js/Scripts/stimulsoft.dashboards.pack';
-
- Posts: 5860
- Joined: Tue Mar 20, 2018 5:34 am