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
I also posted about this here but haven't heard anything.
The Blueprint docs say to use this:
@import "~@blueprintjs/core";
However, if I try that, I get this error from webpack:
Can't resolve '@blueprintjs/core.less'
#123 deals with similar issues and a lot of people suggested using this:
@import "~@blueprintjs/core/dist/blueprint.css";
webpack doesn't like that either:
Module not found: Error: Can't resolve '@blueprintjs/core/dist/blueprint.css'
Looking in the dist/ directory, I can see that there's only a JS file in there:
dist/
$ ls node_modules/\@blueprintjs/core/dist/ core.bundle.js
After some trial and error, I found that this works:
@import "~@blueprintjs/core/lib/css/blueprint.css";
But this doesn't seem right to me. Also, none of the icons are loaded via this method.
What's the correct way to do this?
The text was updated successfully, but these errors were encountered:
Icons are not included in blueprint core anymore; there's a new package called @blueprintjs/icons.
@blueprintjs/icons
this is correct. most of the built assets moved from /dist/ to /lib/.
/dist/
/lib/
Sorry, something went wrong.
Ah, okay, I don't think that's in the docs anywhere. It looks like your v2 docs don't reflect some of the changes that have been made since v1.
For posterity:
@blueprintjs/core
@import '~@blueprintjs/core/lib/css/blueprint.css'; @import '~@blueprintjs/icons/lib/css/blueprint-icons.css';
giladgray
Successfully merging a pull request may close this issue.
Bug report
Steps to reproduce
I also posted about this here but haven't heard anything.
The Blueprint docs say to use this:
However, if I try that, I get this error from webpack:
#123 deals with similar issues and a lot of people suggested using this:
webpack doesn't like that either:
Looking in the
dist/
directory, I can see that there's only a JS file in there:After some trial and error, I found that this works:
But this doesn't seem right to me. Also, none of the icons are loaded via this method.
What's the correct way to do this?
The text was updated successfully, but these errors were encountered: