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

Upgrade Sass #1995

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Upgrade Sass #1995

wants to merge 2 commits into from

Conversation

MetRonnie
Copy link
Member

Supersedes #1975, fixes the deprecation warnings it brings

If you're using Vite in your application try replacing sass (legacy) with sass-embedded (modern): https://vuetifyjs.com/en/features/sass-variables/#build-performance

vuetifyjs/vuetify#20489 (comment)

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • No stuff needed
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@MetRonnie MetRonnie added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 15, 2024
@MetRonnie MetRonnie added this to the 2.7.0 milestone Nov 15, 2024
@MetRonnie MetRonnie self-assigned this Nov 15, 2024
@@ -79,7 +79,7 @@
"json-server": "0.17.4",
"nodemon": "3.1.7",
"nyc": "17.1.0",
"sass": "1.77.8",
"sass-embedded": "1.80.6",
Copy link
Member Author

@MetRonnie MetRonnie Nov 15, 2024

Choose a reason for hiding this comment

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

https://www.npmjs.com/package/sass-embedded

This package is an alternative to the sass package. It supports the same JS
API as sass and is maintained by the same team, but where the sass package
is pure JavaScript, sass-embedded is instead a JavaScript wrapper around a
native Dart executable.

@@ -15,8 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

@use '../settings.scss';
@import '@lumino/default-theme/style/index.css';
Copy link
Member Author

@MetRonnie MetRonnie Nov 15, 2024

Choose a reason for hiding this comment

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

Moved to JS import, as this seems to be falling back to CSS @import instead of Sass @import, and was no longer working as desired

import '@lumino/default-theme/style'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant