-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Point style field to built css #394
Point style field to built css #394
Conversation
df49ea2
to
409ed43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I could see some people wanting the SCSS version so they can access variables.
Is there some convention for specifying these both separately so the build tool will use the appropriate one? Like JS has main
and module
for ES5 vs ES6+.
If there isn't we can probably make our own with something like |
To add some additional context, I was experimenting with webpack's style importing and noticed the full path had to be used. import styles from "primer-buttons/build/build.css"; https://gist.github.com/josh/e93fc4491e327307cd0ac1681e7d7066 |
For reference: Bootstrap uses |
We discussed this at our last sync, and are going to address this in the next minor release because we didn't want to add more changes to v10 (shipping today). On a quick look it seems that pointing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @koddsson! Going to merge this in for Primer 10.2 and will add another option for the Sass.
Only changes between v1.5.0 and v1.5.1 (according to https://github.com/primer/primer/commits/master/modules/primer-tooltips) are: - primer/css#394 - primer/css#409 So we are not affected.
Only changes between v1.5.0 and v1.5.1 (according to https://github.com/primer/primer/commits/master/modules/primer-tooltips) are: - primer/css#394 - primer/css#409 So we are not affected.
Hey! 👋
I want to be able to import primer packages like this in my project:
and have it setup to import the file set in the
style
field in my project for primer packages but in a lot of packages it points to the SASS file and I much rather have it point to the built CSS so I don't have to compile it myself./cc @primer/ds-core