close

Filter

loading table of contents...

Release Notes / Version 12.2412.0

Table Of Contents

Replaced node-sass with dart-sass

As node-sass has been deprecated we replaced the dependency with the new default implementation "dart-sass" which is actively maintained.

As it is a different implementation with some limitations regarding the loader API the following breaking changes have been made:

  • SCSS syntax checking may be more strict, leading to possible errors if invalid SCSS is encountered

  • As the new importer API doesn't allow tracking and intercepting all @imports anymore, the following custom scss importers have been removed without replacement

    • sassExcludeImport - this means that you can no longer exclude certain imports with the "?exclude" suffix

    • sassImportOnce - see below

    • dependencyCheckPlugin.getNodeSassImporter() - meaning we will no longer check if all dependencies have been properly declared in the package.json

  • When importing a SCSS file multiple times all imports except for the last imports will be ignored. This is a major difference to the behavior of our old custom sassImportOnce loader which kept the first imports. If you are encountering issues with the order of the generated css rules, this should be the first thing to inspect

(CMS-18916)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.