Skip to content

fix(build): replace node-sass with sass and disable css-purge shorten#313

Merged
yegor256 merged 1 commit intoyegor256:masterfrom
ManiShah7:fix/sass-migration-and-purge-shorten-fix
May 25, 2025
Merged

fix(build): replace node-sass with sass and disable css-purge shorten#313
yegor256 merged 1 commit intoyegor256:masterfrom
ManiShah7:fix/sass-migration-and-purge-shorten-fix

Conversation

@ManiShah7
Copy link
Copy Markdown
Contributor

@ManiShah7 ManiShah7 commented May 25, 2025

Hi @yegor256,

Notes

I couldn’t install dependencies properly due to issues with node-sass (which requires Visual Studio build tools). Although I installed Visual Studio, the problem persisted. To fix this, I replaced node-sass with sass (Dart Sass) which has better compatibility and easier installation.

If you prefer not to replace node-sass with sass, you can simply merge the part of this pull request that adds:

options: {
  shorten: false
}

to the css_purge task in the Gruntfile.

Description

  • Replaced node-sass with sass to fix build issues related to Visual Studio dependencies.
  • Added shorten: false option to css-purge to prevent incorrect shortening of border widths.

If you have any questions or need me to adjust anything, please feel free to let me know. I’m happy to help!

fixes #309

- Replaced node-sass with sass to fix build issues related to Visual Studio dependencies.
- Added 'shorten: false' to css-purge options to prevent incorrect shortening of border widths.
@yegor256 yegor256 merged commit f6d4f0e into yegor256:master May 25, 2025
12 checks passed
@yegor256
Copy link
Copy Markdown
Owner

@ManiShah7 awesome, thanks!

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.

css-purge reduces small values to zero

2 participants