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

log-loader

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-loader

loader for debugging

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

log-loader

Install

npm install --save-dev log-loader

Usage

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [ 
          'style-loader',
          'log-loader?id=after-css&showSource=true',
          'css-loader',
          'log-loader?id=before-css&showSource=true',
        ]
      }
    ]
  }
}

Options

Options may passed via query params too.

Defaults

{
  loader: 'log-loader',
  options: {
    id: '',
    showIndex: false,
    showSource: false,
    showPitch: false,
    showNextLoader: false,
    showPrevLoader: false,
    
    // string sizes
    pad: {
      id: 15,
      index: 4,
      loader: 15,
      file: 35
    },
    
    // only option params, this = loader context
    callback: function (source) { return source; },
    callbackPitch: function (remainingRequest, precedingRequest, data) {}
  }
}

FAQs

Package last updated on 18 Feb 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