Open fgravin opened 2 years ago
@fgravin: fwiw, iirc to get the unminified source for the frontend you need http://localhost:8081/?debug=true. the tomcat backend is running on port 8080, and afaict webpack/nodejs is running on port 8081:
� 「wds」: Project is running at http://localhost:8081/
[frontend] �
� 「wds」: webpack output is served from /dist/
[frontend] �
� 「wds」: Content not from webpack is served from web/client
its in the doc here: https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/developing/#redux-dev-tools but i agree i've also been confused :)
As a developer, I would like to help debugging some issue, but honestly, the experience is always hurting. There is no real doc on how to setup a development environment.
My usecase:
npm v12.21.0
npm install
npm start
There are error[1] in the start but whatever it runsI try to debug the catalog service loading (CSW), no way to find any file in the devtools (
CatalogServiceEditor
for instance), while theprod
is set tofalse
.I want the sourcemap as well, so I hacked the webpack config with
devtool: 'source-map'
but I guess something is broken in the build ? It seems to be running in production mode whatever we do.Would appreciate if the Mapstore team could provide their lights on this topic and give best practices on how to set up a correct dev env. Thanks a lot to the team !
[1]