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

Feat: Optional Optimization #66

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DogeDark
Copy link
Member

Adds the ability to set whether assets are optimized.

@DogeDark DogeDark added enhancement New feature or request breaking Changes a public API in a semvar incompatible way labels Aug 14, 2024
@DogeDark
Copy link
Member Author

DogeDark commented Aug 15, 2024

I don't really like this. If there's a better long-term solution I'd be happy to implement it.

We'd also want something like:

// Ability to force enable/disable optimizations without care of build profile (release/debug)
const MY_CSS: &str = asset!(file("./mystyle.css").force_optimize(true));

But that could also just be a different PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Changes a public API in a semvar incompatible way enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant