Skip to content

Releases: webpack-contrib/sass-loader

v16.0.1

19 Aug 13:11
Compare
Choose a tag to compare

16.0.1 (2024-08-19)

Bug Fixes

  • generate correct sourceMaps for modern-compiler api (#1228) (f862f7a)

v16.0.0

26 Jul 17:04
Compare
Choose a tag to compare

16.0.0 (2024-07-26)

⚠ BREAKING CHANGES

  • use modern Sass JS API by default for sass and sass-embedded

Warning

The sass options are different for the legacy (before) and modern APIs. Please look at docs how to migrate to the modern options.
Legacy options - https://sass-lang.com/documentation/js-api/interfaces/legacystringoptions/
Modern options - https://sass-lang.com/documentation/js-api/interfaces/options/

To return to the previous logic use:

module.exports = {
  module: {
    rules: [
      {
        test: /\.s[ac]ss$/i,
        use: [
          "style-loader",
          "css-loader",
          {
            loader: "sass-loader",
            options: {
              api: "legacy",
              // Your options
            },
          },
        ],
      },
    ],
  },
};

Features

  • use modern Sass JS API by default for sass and sass-embedded (10be1ba)

v15.0.0

23 Jul 15:45
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • prefer sass-embedded over sass by default (#1211)

Features

  • prefer sass-embedded over sass by default (#1211) (83423ff)

v14.2.1

16 Apr 16:53
Compare
Choose a tag to compare

14.2.1 (2024-04-16)

Bug Fixes

v14.2.0

11 Apr 15:29
Compare
Choose a tag to compare

14.2.0 (2024-04-11)

Features

  • added the modern-compiler value for API to reuse compiler process (#1195) (cef40a8)
  • support webpack built-in resolver for modern and modern-compiler API (#1197) (2265b72)

Notes:

Using the modern-compiler value for the api option together with sass-embedded reduces compilation time by 5-10 times, especially for projects using large files with a lot of @import/@use, for small files the build time reduction will not be significant.

v14.1.1

19 Feb 16:00
Compare
Choose a tag to compare

14.1.1 (2024-02-19)

Bug Fixes

v14.1.0

30 Jan 15:52
Compare
Choose a tag to compare

14.1.0 (2024-01-30)

Features

  • add @rspack/core as an optional peer dependency (#1184) (637ba5b)

v14.0.0

15 Jan 16:08
Compare
Choose a tag to compare

14.0.0 (2024-01-15)

⚠ BREAKING CHANGES

  • removed fibers support
  • minimum supported Node.js version is 18.12.0 (627f55d)

v10.5.2

04 Jan 13:14
Compare
Choose a tag to compare

10.5.2 (2024-01-04)

Bug Fixes

v13.3.3

25 Dec 20:17
Compare
Choose a tag to compare

13.3.3 (2023-12-25)

Bug Fixes