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
addUrlDependency
addUrlDependency, currently does not support node modules properly afaik.
I can implement this myself, just wondering what the syntax should be for this kind of import.
Example of where this would be usefull
.something { background-image: url('node_module/icon.svg'); }
addUrlDependency should be able to import node_modules
addUrlDependency can't import node_modules
Do something similar to how css imports work ~node_module => node_module ~/path/file => root path
~node_module
~/path/file
Trying to import an icon from an icon package in a monorepo.
.searchbar { background: transparent; border: none; padding: 10px 20px 10px 50px; border-radius: 25px; color: $black; width: 100%; font-size: $font-size-14; /* This does not work atm */ background-image: url("~@zf/icons/icons/search-icon.svg"); background-repeat: no-repeat; background-size: 20px; background-position: 15px center; }
The text was updated successfully, but these errors were encountered:
I think we are planning to support npm: protocol URLs in v2, so going to close this in favor of #3492 (comment).
npm:
Sorry, something went wrong.
No branches or pull requests
🙋 feature request
addUrlDependency, currently does not support node modules properly afaik.
I can implement this myself, just wondering what the syntax should be for this kind of import.
Example of where this would be usefull
🤔 Expected Behavior
addUrlDependency should be able to import node_modules
😯 Current Behavior
addUrlDependency can't import node_modules
💁 Possible Solution
Do something similar to how css imports work
~node_module
=> node_module~/path/file
=> root path🔦 Context
Trying to import an icon from an icon package in a monorepo.
💻 Examples
The text was updated successfully, but these errors were encountered: