
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
fast-css-loader
Advanced tools
Blazingly fast css loader for webpack (about 10 times faster than css-loader when process large css files)
npm install fast-css-loader --save-dev
fast-css-loader has higher performance when processing large css files, here is an example when process a 24200+ lines css file:
-------------------------------------
CSS_LOADER COST: 1644 ms
FAST_CSS_LOADER COST: 116 ms
-------------------------------------
fast-css-loader rewrites resolving parts of @import
and url(...)
with RegExp
and some tricks, it's extramely faster than postcss used by css-loader.
Compare with css-loader, fast-css-loader has these limitations:
camelCase
optionIf you really need these features, just use original css-loader :)
just like css-loader:
module.exports = {
module: {
rules: [
{
test: /\.(svg|bmp|gif|png|jpe?g)$/,
loader: require.resolve('file-loader'),
options: {
name: '[name].[hash:8].[ext]'
}
},
{
test: /\.css$/,
use: [
'style-loader',
'fast-css-loader' // replace you css-loader with fast-css-loader
]
},
]
}
}
Name | Type | Default | Description |
---|---|---|---|
root | {String} | / | Path to resolve URLs, URLs starting with / will not be translated |
url | {Boolean} | true | Enable/Disable url() handling |
alias | {Object} | {} | Create aliases to import certain modules more easily |
import | {Boolean} | true | Enable/Disable @import handling |
importLoaders | {Number} | 0 | Number of loaders applied before CSS loader |
The above listed options are consistent with css-loader, for more detail please refer to css-loader options
MIT
FAQs
blazing fast css loader for webpack
The npm package fast-css-loader receives a total of 914 weekly downloads. As such, fast-css-loader popularity was classified as not popular.
We found that fast-css-loader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.