-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
🙋 allow custom importer feature for sass-loader – @import "~packagename/foo/bar"; #1182
Comments
So your import should be this: On second thought you should be able to import them like this? |
Hey @DeMoorJasper – Thank you for your suggestions. Sadly none of the path adjustments work. It's booth throwing the The project structure should be pretty normal, I could also share the whole project if it's help. Directory Structure
|
@m5o Creating a test repo would help. |
I've pinpointed the problem and found a solution. |
Wow! Thank you @DeMoorJasper 🤓 |
ℹ️ Updated my example repo to latest parcel-bundler FYI – is this matching your expected behaviour @DeMoorJasper ? 🛑 is not working
@import "~bootstrap/scss/_variables.scss"; ✅ is working
@import "bootstrap/scss/_variables.scss"; |
🔗 #1335 |
🤔 Expected Behavior
Allow shorthand import of
@import "~bootstrap/scss/_functions.scss";
instead of@import "../node_modules/bootstrap/scss/_functions.scss";
No build error 😬
😯 Current Behavior
🚨 File to import not found or unreadable:
~bootstrap/scss/_functions.scss
.📺 Example App
💻 Code Sample
🌍 Your Environment
1.7.0
2.5.16
The text was updated successfully, but these errors were encountered: