-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix (sass): import path has cwd once again #6326
Conversation
Fixes videojs#4061 in `master` (7.x)
💖 Thanks for opening this pull request! 💖 Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
I see now that this was done intentionally as part of a move to use dart-sass, correct? Do we have some kind of upgrade instruction for people coming from 5.x or 6.x ? |
Yeah, this was done as part of the switch to dart-sass. As you can see the build is failing with this change. I'm not sure how to reconcile the two. |
I still don't get something. even if I move to our project to
And if I change to : |
Oh, I wonder if this is happening because the location of files is different depending on whether it's used during the build in the video.js source directory vs being imported in sass from node_modules/video.js/src/css... @tsi can you show me the output of |
I think that's spot-on
It does, and I assumed it should work for you too. |
So, I think I found a workaround that won't require doing weird stuff. The sass api includes a @tsi Can you add sass --load-path='./' --no-source-map src/css/vjs-cdn.scss dist/alt/video-js-cdn.css and sass --load-path='./' --no-source-map src/css/vjs.scss dist/video-js.css |
Sure, done, will it pass the build test? |
Looks like it passed, 🎉. We'll likely be able to release next week. |
You're quick! Thanks!! |
@gkatsev no merge? |
It'll happen this week. We have a policy of requiring two approvals for PRs and the other approvers were out last week. |
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 @tsi!
Congrats on merging your first pull request! 🎉🎉🎉 |
This fixes a sass compile error we got after upgrading to 7.x
Same as #4061 but for v7.x