Socket
Socket
Sign inDemoInstall

@constgen/neutrino-sourcemap

Package Overview
Dependencies
306
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @constgen/neutrino-sourcemap

Neutrino middleware to configure source maps in JS and CSS


Version published
Weekly downloads
4
increased by100%
Maintainers
1
Install size
3.12 MB
Created
Weekly downloads
 

Readme

Source

@constgen/neutrino-sourcemap

npm npm

Neutrino middleware that automatically enables necessary source maps in development and production

Features

  • JS source maps
  • CSS source maps
  • NodeJS optimized source maps automatically enabled
  • Chrome DevTools Workspace integration
  • Consider external dependencies sourcemaps for better debugging during development

Requirements

  • Node.js v10+
  • Neutrino v9
  • Webpack v4

Installation

@constgen/neutrino-sourcemap can be installed from NPM. You should install it to "dependencies" (--save) or "devDependncies" (--save-dev) depending on your goal.

npm install --save @constgen/neutrino-sourcemap

Usage

In preset

Require this package and plug it into Neutrino. The following shows how you can pass an options object to the middleware, showing the defaults:

let sourcemap = require('@constgen/neutrino-sourcemap')

neutrino.use(sourcemap({
   prod: false, // enable source maps in production
   dev : true // enable source maps in development
}))

In neutrinorc

The middleware also may be used together with another presets in Neutrino rc-file, e.g.:

.neutrinorc.js

let sourcemap = require('@constgen/neutrino-sourcemap')

module.exports = {
   use: [
      sourcemap()
   ]
}

Keywords

FAQs

Last updated on 28 Sep 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc