{"library":"postcss-loader","title":"postcss-loader","description":"Webpack loader that processes CSS with PostCSS. Current stable version is 8.2.1, released February 2026, requiring Node.js >=18.12.0 and webpack ^5.0.0. Supports automatic configuration file discovery (postcss.config.js, etc.) and ESM configs via jiti v2. Key differentiator: official webpack integration for PostCSS, handles source maps, CSS-in-JS via execute option, and supports Rspack as optional peer dependency.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install postcss-loader"],"cli":null},"imports":["module.exports = { module: { rules: [ { test: /\\.css$/i, use: ['style-loader', 'css-loader', 'postcss-loader'] } ] } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"npm install --save-dev postcss-loader postcss webpack webpack-cli style-loader css-loader\n\n// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.css$/i,\n        use: [\n          'style-loader',\n          'css-loader',\n          {\n            loader: 'postcss-loader',\n            options: {\n              postcssOptions: {\n                plugins: [\n                  ['postcss-preset-env', { /* options */ }]\n                ]\n              }\n            }\n          }\n        ]\n      }\n    ]\n  }\n};","lang":"javascript","description":"Install required dependencies and configure postcss-loader in webpack to process CSS with PostCSS plugins.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}