{"library":"prettier-loader","title":"prettier-loader","description":"Webpack loader that auto-formats source code with Prettier during the build process. Current stable version is 3.3.0, with ongoing maintenance. It integrates seamlessly with webpack-dev-server to format on every save, supporting Prettier configuration files and ignore directives. Unlike pre-commit hooks or CLI scripts, this loader ensures consistent formatting without additional watchers or developer setup. Requires webpack >= 2 and prettier >= 1.6.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-loader"],"cli":null},"imports":["import PrettierLoader from 'prettier-loader'","use: { loader: 'prettier-loader', options: {...} }","module.exports = { module: { rules: [ { test: /\\.jsx?$/, use: { loader: 'prettier-loader' } } ] } }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// webpack.config.js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.jsx?$/,\n        use: {\n          loader: 'prettier-loader',\n          options: {\n            parser: 'babel',\n            semi: true,\n            singleQuote: true\n          }\n        },\n        exclude: /node_modules/\n      }\n    ]\n  }\n};","lang":"javascript","description":"Minimal webpack configuration to auto-format JavaScript files with Prettier using the loader.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}