Skip to content

Solutions for providing the -warn-error argument to rescript build #279

@benadamstyles

Description

@benadamstyles

We use -warn-error +32+27+26+110 (see docs) when building for production, so that during dev we can have unused variables but disallow them for production builds.

I'd like to make a PR to add support for this, I can think of 2 options:

  1. Add config to this plugin to pass args to the rescript command.
  2. Add config to this plugin to explicitly skip the rescript build, so that we can run it ourselves first without the plugin then running it again.

Do you have a preference, are there other options I haven't thought of, or can we already achieve what we need without any changes to the plugin?

Thanks!

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