Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Enable source maps in output by exposing browserify debug option #114

@tmaslen

Description

@tmaslen

Hi,

This is a request which I think would make a great feature to this very useful plugin.

Could you optionally expose browserify's debug option, this would allow users to enable source maps and so benefit from better error stack traces even when the output is minified.

Browserify state that you can set debug: true to enable source maps...

       --debug -d  Enable source maps that allow you to debug your files
                   separately.

On this line here: https://github.com/FidelLimited/serverless-plugin-optimize/blob/master/src/index.js#L382

If you're open to it I'd like to make this in a pull request (this might take me a bit of time).

Thanks,
Tom.

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