-
-
Notifications
You must be signed in to change notification settings - Fork 161
Please ignore imports that start with things like '!!raw!' #170
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
Comments
In src/index.js, it says:
getTargetResourcePath assumes you can resolve the path. That doesn't work for '!!raw!'. I suspect it also doesn't work very well if you're making use multiple roots by having multiple things in Webpack's resolve.modules list, but that's a separate issue ;) |
I don't fully comprehend the use case, but I can see there being a use case for wanting to exclude certain styles from being included. Refer to the |
This problem happened to me again today. I was importing a less file via |
And, btw, exclude doesn't work. See my description at the top. |
I think it should just ignore all imports that start with ! because it's a sign that a Webpack loader is going to do some additional processing. |
Please see: #178 |
Uh oh!
There was an error while loading. Please reload this page.
I have some code that pulls in an import like:
It's working with the .less source code dynamically. The current ways that you can configure the project to skip files (i.e. exclude) don't work because they happen after the file has already been resolved. It doesn't work with something that starts with '!!raw!'. I'm not sure how common this is, but it'd be nice to just ignore imports like that.
The text was updated successfully, but these errors were encountered: