Registry / devops / fast-sass-loader

fast-sass-loader

JSON →
library2.0.1jsnpmunverified

A webpack loader for Sass/SCSS that claims 5-10x faster compilation than sass-loader by deduplicating @imports, merging all Sass files into a single compile unit, and caching results internally. Version 2.x switched from node-sass to dart-sass (npm 'sass') as the default compiler, with an `implementation` option to restore node-sass. It also provides built-in url() resolution, eliminating the need for resolve-url-loader. Key trade-offs include no source map support and limited loader configuration compared to sass-loader. Release cadence is low; last update was 2020. Requires webpack 1–5 and sass 1.x as peer dependencies.

devops
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommonJS require works without .default: const loader = require('fast-sass-loader')

import FastSassLoader from 'fast-sass-loader'

Shows a basic webpack config using fast-sass-loader with includePaths and data options, paired with css-loader.

// webpack.config.js module.exports = { module: { rules: [ { test: /\.(scss|sass)$/, use: [ 'css-loader', { loader: 'fast-sass-loader', options: { includePaths: ['src/styles'], data: '$env: production;' } } ] } ] } };
Debug
Known footguns
breakingIn v2.x, default implementation changed from node-sass to dart-sass (npm sass). Existing projects relying on node-sass may fail.
gotchaNo source map support. If you need source maps for debugging, use sass-loader instead.
gotchaLoader configuration options like 'includePaths' are passed directly to the Sass compiler, not all sass-loader options are supported.
deprecatedThe package has not been updated since 2020 and may not be compatible with webpack 5+ or latest dart-sass.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources