Skip to content

Different formatters for different environments #664

@marlondecol

Description

@marlondecol

Description

It would be useful to support different formatters depending on the selected environment. For example, using the default formatter for development and shfmt --minify for production.

Even a simpler option, such as enabling minification of the generated script when building for production, would already be very helpful.

Apologies if this is already possible, but I couldn’t find a way. I tried a few approaches, like setting formatter to run a script that invokes different formatter commands based on the BASHLY_ENV environment variable, but I wasn’t able to make it work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions