@debugmate/webpack-plugin-test
v1.1.2
Published
A Webpack plugin created by Debugmate to track and report errors in your application.
Maintainers
Readme
Debugmate Webpack Plugin
Description
The Debugmate Webpack Plugin is a tool designed to help identify and report errors during the Webpack build process. It also sends source maps to show exactly where the error occurred in your application. During the build, the plugin captures errors and sends detailed reports to Debugmate.
Installation
Add the plugin to your project:
npm install @debugmate/webpack-pluginUsage
To use the Debugmate Webpack Plugin, add it to your Webpack configuration:
const { DebugmateWebpackPlugin } = require('@debugmate/webpack-plugin');
module.exports = {
// ... other Webpack configurations ...
devtool: "source-map",
plugins: [
new DebugmateWebpackPlugin({
domain: "https://your-new-domain.com",
token: "new-api-token",
user: {
id: 123,
name: "Jane Doe",
email: "[email protected]",
},
environment: {
environment: "staging",
debug: true,
timezone: "PST",
server: "apache",
},
request: {
url: "https://api.example.com/resource",
method: "POST",
params: { key: "value" },
},
}),
],
};Configuration
- domain: URL of the server where error reports will be sent.
- token: Authentication token for the server.
- user: User information (id, name, email).
- environment: Environment information (environment, debug, timezone, server).
- request: Request information (url, method, params).
