{"library":"style-resources-loader","type":"library","category":null,"description":"A webpack loader that automatically injects CSS preprocessor resources (variables, mixins, functions) into all processed style files for Sass, SCSS, Less, and Stylus. v1.5.0 is the latest stable release, compatible with webpack 3, 4, and 5. It eliminates the need for manual @import statements in every file, simplifies theme customization (e.g., overriding Ant Design variables), and supports custom injectors (prepend/append) as well as glob patterns. Unlike similar tools (e.g., sass-loader prependData), it works across multiple preprocessors and allows resource file globbing.","language":"javascript","status":"active","version":"1.5.0","tags":["javascript","webpack","loader","style","css","sass","scss","less","stylus"],"last_verified":"Wed May 27","install":[{"cmd":"npm install style-resources-loader","imports":["use in webpack config as { loader: 'style-resources-loader', options: {...} }","import styleResourcesLoader from 'style-resources-loader' // Not a default export","import type { Injector } from 'style-resources-loader' // Only in TypeScript, for custom injectors"]},{"cmd":"yarn add style-resources-loader","imports":[]},{"cmd":"pnpm add style-resources-loader","imports":[]}],"homepage":null,"github":"https://github.com/yenshih/style-resources-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/style-resources-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/style-resources-loader/compatibility"}}