A webpack plugin that automatically reformats code (JavaScript, JSON, CSS, Sass) using Prettier during the build process. Version 1.0.3 is the latest, with an unknown release cadence. Its key differentiator is simplicity—three steps to integrate. However, it is a minimal wrapper around Prettier with limited documentation and no active development, making it less robust than alternatives like prettier-webpack-plugin.
npm install webpack-prettier-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates registration of the plugin in webpack.config.js using CommonJS require() and instantiation.
Use const WebpackPrettierPlugin = require('webpack-prettier-plugin') instead of import.Use const WebpackPrettierPlugin = require('webpack-prettier-plugin'); new WebpackPrettierPlugin()Ensure prettier is installed as a devDependency: npm install --save-dev prettier
npm install --save-dev webpack-prettier-plugin
Use const WebpackPrettierPlugin = require('webpack-prettier-plugin'); new WebpackPrettierPlugin()