Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prettier-loader

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-loader

webpack prettier loader

  • 2.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-55.57%
Maintainers
1
Weekly downloads
 
Created
Source

prettier-loader

Prettier loader for Webpack.

The main idea is to make an auto prettier-fying source code on save, but to do it in cross-IDE manner: without installing and configuring plugins on every developer's machine, but integrate it in a development flow.

Installation

npm install prettier-loader prettier --save-dev

Usage

Now supports only webpack 2 and 3. Create an issue on pr, if you need to support Webpack 1.

// webpack.config.js
module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        use: {
          loader: 'prettier-loader',
          // additional options assigned to your options in
          // - .prettierrc,
          // - prettier.config.js,
          // - "prettier" property in package.json
          options: { /* prettier options */ },
        }
      }
    ]
  }
};

Keywords

FAQs

Package last updated on 25 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc