{"library":"style-loader","type":"library","category":null,"description":"Webpack loader that injects CSS into the DOM by appending <style> or <link> tags. Version 4.0.0 (April 2024) requires webpack 5.27+ and Node.js 18.12+. Commonly paired with css-loader for development workflows. Supports multiple injection strategies (styleTag, singletonStyleTag, lazyStyleTag, linkTag) and can use CSS modules. Not recommended for production without additional configuration (e.g., ExtractTextPlugin). Maintained by the webpack-contrib team with regular updates.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript","webpack"],"last_verified":"Wed May 27","install":[{"cmd":"npm install style-loader","imports":["// In webpack config: use 'style-loader' as a string in the 'use' array\nmodule.exports = { module: { rules: [{ test: /\\.css$/i, use: ['style-loader', 'css-loader'] }] } };","use: ['style-loader', 'css-loader']","use: [{ loader: 'style-loader', options: { injectType: 'singletonStyleTag' } }]"]},{"cmd":"yarn add style-loader","imports":[]},{"cmd":"pnpm add style-loader","imports":[]}],"homepage":null,"github":"https://github.com/webpack-contrib/style-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/style-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-loader/compatibility"}}