Skip to content

Add compiledev script for building debug-friendly production bundles #2055

Open
@marlowp

Description

@marlowp

It would be beneficial to have a way to produce deployable MapStore client builds that include all production assets (configs, translations, themes) but also retain development features such as source maps for remote debugging in staging environments.

With recent changes proposed to mapstore-project allowing the use of a MAPSTORE_DEV=true environment flag, we can now support this hybrid scenario. See geosolutions-it/mapstore-project#27 in the mapstore-project repository for details on this.

Enhancement:
Add a compiledev script to package.json that builds using MAPSTORE_DEV=true, enabling:

  • Debuggable source maps
  • Unminified output
  • All production assets bundled as normal

Example use:

npm run compiledev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions