Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CLI argument to allow sprite index file to be minified #15

Closed
flother opened this issue Jul 28, 2022 · 0 comments
Closed

Add a CLI argument to allow sprite index file to be minified #15

flother opened this issue Jul 28, 2022 · 0 comments

Comments

@flother
Copy link
Owner

flother commented Jul 28, 2022

When a sprite index file is output by Spreet, it's pretty-printed. There should be an option to allow it to be output without any optional whitespace. For example, this should be the default output:

{
  "poi": {
    "width": 32,
    "height": 32,
    "x": 0,
    "y": 0,
    "pixelRatio": 1
  }
}

But when the --minify-index-file argument is passed it should be output as:

{"poi":{"width":32,"height":32,"x":0,"y":0,"pixelRatio":1}}
@flother flother closed this as completed in 17359fa Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant