-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
web: replace node-sass with sass (#5846)
The `node-sass` package has been deprecated and superseded by the `sass` package. The `node-sass` package used a C library via `node-gyp`, which itself requires Python to wrangle the compilation. The version of `node-sass` we were using was old and thus relied on an old version of `node-gyp`, which only supported <= Python 3.8. This caused problems with Homebrew builds with embedded assets, as Python 3.9 is used there, so `node-gyp` would error out. While it's theoretically possible to upgrade `node-sass` to a newer version to transitively get a newer `node-gyp` that will not bail on Python 3.9, that did NOT work out of the box, and the recommended solution for the problem was...switch to `sass`, which does not have any native code requirements and is actively supported. As part of this, the `sass` compiler emitted warnings on deprecated division outside of `calc()`, so those have all been updated to avoid producing a bunch of noise in the build log. I did a visual pass after this change and didn't see any differences in styling in Chrome on macOS. tl;dr: This will dramatically simplify producing Homebrew builds with embedded assets by sidestepping the need for a Python/`node-gyp` build chain just for bundling the UI assets.
- Loading branch information
Showing
6 changed files
with
89 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.