Skip to content

hiding sourcemaps causes Cordova HCP to fail #23

@hexsprite

Description

@hexsprite

The sourcemap is listened in the __cordova/manifest.json but it results in a 404 error causing the meteor cordova plugin to give up on the download.

For now I'm just using the following in my build script:

# post-process Cordova config to remove sourcemap URLs
CORDOVA_MANIFEST=bundle/programs/web.cordova/program.json
JQ_FILTER='del(.manifest[].sourceMap) | del(.manifest[].sourceMapUrl)'
jq $JQ_FILTER $CORDOVA_MANIFEST > $CORDOVA_MANIFEST.tmp \
  && mv -f $CORDOVA_MANIFEST.tmp $CORDOVA_MANIFEST

I'm not sure if that means I won't get proper sourcemaps if an error occurs in the cordova version my app or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions