-
-
Notifications
You must be signed in to change notification settings - Fork 786
CSS not included in dist package #271
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
Having the same problem. Not sure how the links above help. Am I supposed to download the file and put it somewhere in my codebase? (v8.3.0) |
@nadeemja Sorry for the trouble. I have fixed it just now,please try |
Hi @paranoidjk ! Thanks for the quick response. Very impressive. Unfortunately it didn't work. I ran |
I don't understand what you want me to do. Do I need to handle the css file separately? |
Yes. My problem is that the css is not included when installing the package. There is not assets folder, not even in 8.3.1 |
@nadeemja If you require from npm, you sould load style manually, see https://github.com/react-component/slider/blob/master/examples/slider.js#L2 |
Yes, I understand - but the file does not exist. Do you mean to say that we must manually download the file? |
@nadeemja I checked it, right now i only published css to npm, so you can do:
do you need less? Please let me know if it is necessary. |
@nadeemja I think users no need to import less, just use css, since you have to compile less to css eventually. |
@nadeemja see usage doc in readme: https://github.com/react-component/slider#usage 😄 |
Okay. Let me explain.
I do not need Less. I'm just saying that the .css file is missing. :) |
@nadeemja What's your version of rc-slider? You could see from https://unpkg.com/[email protected]/ , There do have assets folder. PS. what is unpkg? see https://unpkg.com/#/ |
I'm using 8.3.1. Perhaps it's a problem with Yarn. Have you tested with Yarn? |
@nadeemja Yarn won't change the package files. |
I know. But then why is the assets folder not installed into node_modules/rc-slider? |
Uh oh!
There was an error while loading. Please reload this page.
The latest version no longer include assets folder in the package
tested at version 7.0.8
it moves to
/dist
folder now, not sure this is expected as the documentation still points us to the assets folder.The text was updated successfully, but these errors were encountered: