Skip to content

[Fixes #2055] Add compiledev script using MAPSTORE_DEV=true for debug-friendly production builds #2056

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marlowp
Copy link

@marlowp marlowp commented May 14, 2025

This PR adds a new script to package.json to support hybrid builds using the MAPSTORE_DEV=true flag now supported by mapstore-project. See geosolutions-it/mapstore-project#27 in the mapstore-project repository for details on this.

Changes:
Adds a new NPM script:

"compiledev": "MAPSTORE_DEV=true mapstore-project compile && node postCompile"

This allows the MapStore client to be built with:

  • Source maps
  • Development Webpack mode
  • All production assets (themes, translations, configs)

Why:
This is useful for deploying builds to staging/QA environments where full production content is needed but debugging (e.g., via browser DevTools and source maps) is still required.

Example usage:

npm run compiledev

This will produce a fully deployable client that is easier to debug in non-local environments.

Closes #2055

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

Successfully merging this pull request may close these issues.

Add compiledev script for building debug-friendly production bundles
1 participant