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

limit handling in url() method #1372

Open
bglusman opened this issue Jan 31, 2014 · 0 comments
Open

limit handling in url() method #1372

bglusman opened this issue Jan 31, 2014 · 0 comments

Comments

@bglusman
Copy link

The stylus url method's base64 encoding option takes a limit parameter which defaults to 30kb/30000, but the behavior for files exceeding this limit is undefined; The current behavior is to pass larger files through as local file ref's, but the generated css file may not be served from the same location it's generated from (as in our case), making those references invalid. I'm considering developing a stylus plugin to change this behavior, but it might be nice/simpler to simply have an option or flag for erroring loudly or something when files above this limit are referenced, so they can be manually uploaded and handled as absolute URL's instead of relative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants