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

@constgen/neutrino-mode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@constgen/neutrino-mode - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

9

index.js

@@ -7,11 +7,16 @@ module.exports = function () {

let mode = modeWebpack || modeDevServer || modeEnv
let testEnv = modeEnv === 'test'
let devMode = mode === 'development'
process.env.NODE_ENV = mode
process.env.NODE_ENV = testEnv ? modeEnv : mode
neutrino.config
.mode(mode)
.when(devMode, function (config) {
config.watch(true)
config
.watch(true) // https://webpack.js.org/configuration/watch/#watch
.devServer
.hot(true)
.end()
})
}
}
{
"name": "@constgen/neutrino-mode",
"version": "1.0.0",
"version": "1.1.0",
"description": "Neutrino middleware to automatically choose the building mode",

@@ -26,3 +26,3 @@ "main": "index.js",

"files": [
"*.js",
"**/*.js",
"README.md",

@@ -29,0 +29,0 @@ "package.json"

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