Skip to content

How to use different compression/mangle settings in dev vs prod? #10

@dwickern

Description

@dwickern

I use the concatenation feature in both development (sbt run) and production (sbt dist). I want to disable compression and mangling in development and enable them in production.

I expected this to work:

pipelineStages in Assets := Seq(uglify)
UglifyKeys.compress in Assets := false
UglifyKeys.mangle in Assets := false
UglifyKeys.compress := true
UglifyKeys.mangle := true

But the plugin doesn't scope compress and mangle so they are always true.

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