Project

General

Profile

Actions

Task #97538

closed

Switch to dart-sass

Added by Josef Glatz over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Frontend
Target version:
-
Start date:
2022-05-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Requirements

  • node-sass respectively LibSass is deprecated as stated in https://www.npmjs.com/package/node-sass
  • Bootstrap 5.x supports/uses dart-sass with the npm package "sass" which distributes dart-sass, the native javascript based sass solution

ToDo

  1. Remove node-sass
  2. Add dart-sass
  3. Fix errors in actual implementation (where node-sass was not so strict)
  4. Fix divisions with sass-migrator
  5. Fix/Update existing 3rd party packages if they don't support dart-sass
    • font-awesome
      • Version Update which supports dart-sass
      • Proper upgrade or patch as the migration from v4 to v6 is not that easy as it also has some breaking changes in the available icons

How to test

  • Build scripts must not use node-sass anymore.
  • npm package "sass" must not required anymore by the TYPO3 core
Actions #1

Updated by Josef Glatz over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Jochen Roth over 2 years ago

Both work for me on Apple M1:

Build/Scripts/runTests.sh -s buildCss
Build/Scripts/runTests.sh -s buildJavascript

Actions #3

Updated by Josef Glatz over 2 years ago

Thanks Jochen! Spooky. Looks like an problem on my environment. Ok, then the task is just to move to dart-sass do get rid of node-sass as it's deprecated ¯\_(ツ)_/¯

Actions #4

Updated by Jochen Roth over 2 years ago

Maybe `Build/Scripts/runTests.sh -u` helps to update containers.
Just a shot in the dark.

Actions #5

Updated by Josef Glatz over 2 years ago

  • Tracker changed from Epic to Task
  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee set to Josef Glatz
  • TYPO3 Version set to 12
Actions #6

Updated by Josef Glatz over 2 years ago

  • Description updated (diff)
Actions #7

Updated by Josef Glatz over 2 years ago

  • Description updated (diff)
Actions #8

Updated by Josef Glatz over 2 years ago

  • Description updated (diff)
Actions #9

Updated by Josef Glatz over 2 years ago

  • Description updated (diff)
Actions #10

Updated by Gerrit Code Review over 2 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75433

Actions #11

Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75433

Actions #12

Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75433

Actions #13

Updated by Nikita Hovratov over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #14

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF