@constgen/neutrino-mode
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38225
19