Webpack Log Forward Plugin

A webpack plugin that forwards browser console logs to terminal during development.

Features

Installation

npm install @davidtranjs/webpack-log-forward-plugin

Usage

const { WebpackLogForwardPlugin } = require('@davidtranjs/webpack-log-forward-plugin');

module.exports = {
  // ... other webpack config
  plugins: [
    new WebpackLogForwardPlugin({
      logTypes: ['log', 'info', 'warn', 'error', 'debug'], // optional
      prefix: '[Browser]', // optional
      includeTimestamp: true, // optional
      enabled: true // optional
    })
  ]
};

Development

This project uses Biome.js for linting and formatting. To work on this project:

Prerequisites

Setup

pnpm install

Available Scripts

Code Quality

This project uses Biome.js for:

The Biome configuration is in biome.json and includes:

License

MIT