Need `includePattern` as option
See original GitHub issueMy 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:
- Created 4 years ago
- Comments:10
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
+1 I have a case where I want to have different
svgo
options based on a test pattern.Makes sense.