Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production build of GeoExt #710

Open
dknezevic opened this issue Oct 21, 2021 · 2 comments
Open

Production build of GeoExt #710

dknezevic opened this issue Oct 21, 2021 · 2 comments

Comments

@dknezevic
Copy link

Hi Everyone,
I'm using ExtJS/GeoExt/OpenLayers combo for a very long time, and recently (meaning 2 years ago) we started using open tooling in ExtJS for building out app.
I tried to integrate these libraires in so many different ways and combinations, and I never succeeded to create a production build of our application.
The best I can do is create a testing version using the following combinations:
ExtJs (currently version 7.4)
GeoExt (3.0.0) installed as as an ExtJs module
Extjs dist build (v6.x.x)

In the last few days I tried to update to GeoExt v4 and was really excited that I could use npm to get it and match it with the legacy OpenLayers v6.5.2 (I followed your upgrade guide). I had success building the development version, but I did not have much luck creating testing and production (in my dreams) build.
I also tried getting the geoext/openlayers/basigx as submodules and all other possible combinations of these libraries, but I always failed.

So is there someone ho had success in creating the production build using this combination? What is the actual problem with this and why is it so hard? is there something specific needed to do in order for webpack to create a production build?
And in the end, are there some examples?
What do you use to build your apps, and what is the latest version of ExtJs you had success with? Could you just list the versions of the libraries you are using that you can do a successful production build with? Although im paying ExtJs I am ready to downgrade to the version that actually works.

Any suggestion, a waypoint or an idea is welcome as I am having this problem for sooo long (and I already wasted so much time) that I'm kinda desperate..

regards,
Dusan

@dknezevic dknezevic reopened this Oct 22, 2021
@geographika
Copy link
Member

@dknezevic - for GeoExt2/ExtJS4 I used a Grunt plugin to make minified builds. For ExtJS6 and GeoExt3/4 I switched to using SenchaCMD for builds. A working build process can be seen at here and the app.json file.

You could also include full minified copies of ExtJS and GeoExt in your production HTML pages without having to worry about trying to only include classes you need which requires a more complicated build process.

I know other GeoExt users are using other build tools and approaches without SenchaCMD, but each build tool configuration will be different.

@dknezevic
Copy link
Author

@geographika Thanks a lot, I will downgrade to 6.7 and try to work with the setup you provided as an example.
I there is someone out there that managed to build with the 7.x.x version of ExtJs, please share an example.
Additionally, if you have any suggestions on how to do it, but do not have time to test, please let me know, i will be more than willing to try and make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants