Skip to content

How to remove logging during build for admin ui extensions? #2472

Open
@daviareias

Description

@daviareias

I wonder if there's a way to do this in Shopify?

Example

If you use this toml file:

[[extensions]]
name = "My extension"
handle = "some-handle"
type = "ui_extension"

[[extensions.targeting]]
module = "./src/BlockExtension.ts"
target = "admin.order-details.block.render"

@shopify/cli will produce a minified file at dist/BlockExtension.js but won't give you any options to remove logging

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions