Skip to content

Commit

Permalink
Use webpack.dev.js if NODE_ENV is not set (#5498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Jul 14, 2022
1 parent db97acb commit eedc523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const express = require('express');
const app = express();
const fs = require('fs');
const request = require('request');
const __DEV__ = process.env.NODE_ENV === 'development';
const __DEV__ = !process.env.NODE_ENV || process.env.NODE_ENV === 'development';

// Defaults
options.port = options.port || options.p || 8080;
Expand Down Expand Up @@ -89,3 +89,4 @@ app.get('/', function (req, res) {
app.listen(options.port, options.host, function () {
console.log('Open MCT application running at %s:%s', options.host, options.port);
});

0 comments on commit eedc523

Please sign in to comment.