-
Notifications
You must be signed in to change notification settings - Fork 372
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 dimensions support to cli.js #457
Comments
Did you try To me, |
Thanks, but it doesn't work:
Looks like // Detect css globbing
const cssBegin = process.argv.findIndex((el) => ['--css', '-c'].includes(el));
const cssEnd = process.argv.findIndex((el, index) => index > cssBegin && el.startsWith('-'));
const cssCheck = cssBegin >= 0 ? process.argv.slice(cssBegin, cssEnd > 0 ? cssEnd : undefined) : [];
const additionalCss = inputs.filter((file) => cssCheck.includes(file));
// Just take the first html input as we don't support multiple html sources for
const [input] = inputs.filter((file) => !additionalCss.includes(file));
if (Array.isArray(css)) {
opts.css = [...css, ...additionalCss].filter((file) => file);
} else if (css || additionalCss.length > 0) {
opts.css = [css, ...additionalCss].filter((file) => file);
} |
@vovayatsyuk: you. can now write See https://github.com/addyosmani/critical/releases/tag/v2.0.3 |
Thank you! |
What do you think about it?
The text was updated successfully, but these errors were encountered: