We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This may not be useful in simple string matching like '.foo' but what about for regex matches?
'.foo'
For example, here is functionality as of v0.3.0:
./stylesheet.css
.foo { color: blue; } .footer { color: black; }
declarations = styledImport('./stylesheet.css', /foo/) // declarations is 'color: blue;' declarations = styledImport('./stylesheet.css', /foo/g) // declarations is ['color: blue;', 'color: black;']
Would it be better to return the selectors also? For example:
matches = styledImport('./stylesheet.css', /foo/g) // matches could be: [{ selector: '.foo', declarations: 'color: blue;' }, { selector: '.footer', declarations: 'color: black;' }]
There are probably other cases where having selectors back would be useful.
It could be behind an options flag of some sort.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This may not be useful in simple string matching like
'.foo'
but what about for regex matches?For example, here is functionality as of v0.3.0:
./stylesheet.css
Would it be better to return the selectors also? For example:
There are probably other cases where having selectors back would be useful.
It could be behind an options flag of some sort.
The text was updated successfully, but these errors were encountered: