question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need `includePattern` as option

See original GitHub issue

My issue is that we want to use this babel transform just for icons that we want to style - inline icons that should have the same color as surrounding text, etc.

On the other hand, we’d like to use webpack’s url-loader to handle all larger “illustration” SVGs. We would rather put those in img tags and let them be cached by the browser and not have them in our javascript bundle.

To do so, an includePattern could be used that would only use this babel transform on (for example):

  • *.icon.svg
  • */icons/*.svg

Thoughts? I’m about to make a PR.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
kg-currenxiecommented, Oct 21, 2019

+1 I have a case where I want to have different svgo options based on a test pattern.

0reactions
ljharbcommented, Jun 17, 2019

Makes sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azcopy --include-pattern fails - Microsoft Q&A
If you want to copy all of the text files that exist in a directory tree, use the --recursive option to get the...
Read more >
Project must list all files or use an 'include' pattern
In my case I was builiding a monorepo and referencing one of the packages into another package. All I had to do was...
Read more >
Configuring JSDoc with a configuration file
To run JSDoc with a configuration file, use the -c command-line option (for ... includePattern : An optional string, interpreted as a regular...
Read more >
How to include pattern in option in SE16N table
I make selections in option in the fields, I put 0030, 0030 and 0040 for Sales Org and 02, 03 and 06 for...
Read more >
TSConfig Reference - Docs on every TSConfig option
Setting strictNullChecks to true will raise an error that you have not made a guarantee ... index.ts Matched by include pattern '**/*' in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found