advanced-cropper / react-advanced-cropper

The react cropper library that embraces power of the advanced cropper core to give the possibility to create croppers that exactly suited for your website design

Home Page:https://advanced-cropper.github.io/react-advanced-cropper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimal required package

kla-ko opened this issue · comments

Hi
I very much like the react advanced cropper. Got it working quickly.
I'm struggling with the required packaging. I used npm install to fetch everything. Then I found out by trial and error which packages are required to put onto my web server. From the node_modules folder, I've used react-advanced-cropper/dist and also the folders classnames and tslib. This works, but probably not all files are really required to get cropper running.
Is there a packaging which bundles all resources which are minimally required?

Thanks

@kla-ko, hello!

It's strange that you need to put the dependencies on your web server by yourself. Why? In any case, there are three dependencies: advanced-cropper, classnames, tslib.

I assume you missing advanced-cropper.

@kla-ko, any news?

Well, npm install --omit=dev fetches all dependencies. I found a dist folder below react-advanced-cropper and I was hoping to find in there all I need. Anyway, I got it running. I'm just afraid to have more artifacts than I really need to run it.

Regards,

I found a dist folder below react-advanced-cropper and I was hoping to find in there all I need.

No you won't. The dependencies will be in node_modules.

Try to execute npm install react-advanced-cropper in an empty folder, and then open node_modules.

Alright. Thanks