Skip to content
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

Switch from node-sass to sass #1215

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Switch from node-sass to sass #1215

merged 1 commit into from
Dec 17, 2024

Conversation

intrip
Copy link
Member

@intrip intrip commented Dec 17, 2024

node-sass is deprecated and doesn't work on newer platforms (e.g. arm64)

I compared the new trix.css with the previous one and haven't noticed any difference besides formatting and two details:

  • The new css starts with @charset "UTF-8";
  • The new css uses a color: rgb(0, 0, 0) instead of color: black

@intrip intrip changed the title Switch to node-sass to sass Switch from node-sass to sass Dec 17, 2024
node-sass is deprecated and doesn't work on newer platforms (e.g. arm64)
@intrip intrip changed the title Switch from node-sass to sass WIP Switch from node-sass to sass Dec 17, 2024
@intrip intrip changed the title WIP Switch from node-sass to sass Switch from node-sass to sass Dec 17, 2024
Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@jorgemanrubia jorgemanrubia merged commit 6214af4 into main Dec 17, 2024
3 checks passed
@jorgemanrubia jorgemanrubia deleted the switch-to-sass branch December 17, 2024 11:46
@intrip
Copy link
Member Author

intrip commented Dec 17, 2024

I noticed this broke yarn start because we are no longer accepting the --watch option on yarn build-css. Working on a fix.

intrip pushed a commit that referenced this pull request Dec 17, 2024
#1215 indirectly removed the --watch mode, by switching compilation
to a node.js file. Unfortunatelym `sass` CLI doesn't support a `--function` option, so this was the only option.
Now reintroduce `--watch` option using `chokidar`.
intrip pushed a commit that referenced this pull request Dec 17, 2024
#1215 indirectly removed the `--watch` mode, by switching SCSS compilation
to a node.js file. This was required because the `sass` CLI doesn't support a `--function` option to pass custom functions.
Now reintroduce it back using `chokidar`. This also fixes `yarn start` command.
intrip pushed a commit that referenced this pull request Dec 17, 2024
#1215 indirectly removed the `--watch` mode, by switching SCSS compilation
to a node.js file. This was required because the `sass` CLI doesn't support the `--function` for custom functions.
Now reintroduce it back using `chokidar`. This also fixes `yarn start` command.
intrip pushed a commit that referenced this pull request Dec 17, 2024
#1215 indirectly removed the `--watch` mode, by switching SCSS compilation
to a node.js file. This was required because the `sass` CLI doesn't support the `--function` for custom functions.
Now reintroduce it back using `chokidar`. This also fixes `yarn start` command.
@intrip
Copy link
Member Author

intrip commented Dec 17, 2024

I noticed this broke yarn start because we are no longer accepting the --watch option on yarn build-css. Working on a fix.

Fix: #1216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants