{"id":13515375,"url":"https://github.com/yibn2008/fast-css-loader","last_synced_at":"2025-07-26T04:31:32.601Z","repository":{"id":57232954,"uuid":"66697869","full_name":"yibn2008/fast-css-loader","owner":"yibn2008","description":"blazingly fast css loader for webpack","archived":false,"fork":false,"pushed_at":"2018-05-05T10:42:37.000Z","size":67,"stargazers_count":22,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-23T02:06:03.934Z","etag":null,"topics":["blazingly-fast","css-loader","fast-css-loader","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yibn2008.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-27T05:30:51.000Z","updated_at":"2024-12-29T00:40:02.000Z","dependencies_parsed_at":"2022-08-31T20:51:13.144Z","dependency_job_id":null,"html_url":"https://github.com/yibn2008/fast-css-loader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yibn2008/fast-css-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Ffast-css-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Ffast-css-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Ffast-css-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Ffast-css-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yibn2008","download_url":"https://codeload.github.com/yibn2008/fast-css-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yibn2008%2Ffast-css-loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266815221,"owners_count":23988563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazingly-fast","css-loader","fast-css-loader","webpack"],"created_at":"2024-08-01T05:01:10.358Z","updated_at":"2025-07-26T04:31:32.250Z","avatar_url":"https://github.com/yibn2008.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# fast-css-loader\n\nBlazingly fast css loader for webpack (about 10 times faster than [css-loader](https://github.com/webpack-contrib/css-loader) when process large css files)\n\n## install\n\n```bash\nnpm install fast-css-loader --save-dev\n```\n\n## VS css-loader\n\nfast-css-loader has higher performance when processing large css files, here is an example \nwhen process a **24200+ lines** css file:\n\n```text\n-------------------------------------\n       CSS_LOADER COST: 1644 ms\n  FAST_CSS_LOADER COST: 116 ms\n-------------------------------------\n```\n\n![image](https://user-images.githubusercontent.com/4136679/39662320-4615baf4-5092-11e8-8dc6-82e6c4706604.png)\n\n### Why faster?\n\nfast-css-loader rewrites resolving parts of `@import` and `url(...)` with RegExp \nand some tricks, it's extramely faster than postcss used by css-loader.\n\n### Limitations\n\nCompare with css-loader, fast-css-loader has these limitations:\n\n- doesn't support sourceMap\n- doesn't support minimize (you can minimize css with [mini-css-extract-plugin](https://www.npmjs.com/package/mini-css-extract-plugin))\n- doesn't support `camelCase` option\n- doesn't support css module\n\nIf you really need these features, just use original css-loader :)\n\n## Usage\n\njust like css-loader:\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.(svg|bmp|gif|png|jpe?g)$/,\n        loader: require.resolve('file-loader'),\n        options: {\n          name: '[name].[hash:8].[ext]'\n        }\n      },\n      {\n        test: /\\.css$/,\n        use: [\n          'style-loader',\n          'fast-css-loader'   // replace you css-loader with fast-css-loader\n        ]\n      },\n    ]\n  }\n}\n```\n\n## Options\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`root`**|`{String}`|`/`|Path to resolve URLs, URLs starting with `/` will not be translated|\n|**`url`**|`{Boolean}`|`true`| Enable/Disable `url()` handling|\n|**`alias`**|`{Object}`|`{}`|Create aliases to import certain modules more easily|\n|**`import`** |`{Boolean}`|`true`| Enable/Disable @import handling|\n|**`importLoaders`**|`{Number}`|`0`|Number of loaders applied before CSS loader|\n\nThe above listed options are consistent with css-loader, for more detail please refer to [css-loader options](https://github.com/webpack-contrib/css-loader#options)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyibn2008%2Ffast-css-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyibn2008%2Ffast-css-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyibn2008%2Ffast-css-loader/lists"}