Skip to content

Commit f1a6e4c

Browse files
authored
Merge pull request #6514 from plotly/adjust-webpack-for-strict-dashboard
Fix webpack config to run `strict` dashboard
2 parents 2b4584d + 0b19337 commit f1a6e4c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

devtools/test_dashboard/server.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ var minimist = require('minimist');
99
var constants = require('../../tasks/util/constants');
1010
var config = require('../../webpack.config.js');
1111
config.optimization = { minimize: false };
12-
config.mode = 'development';
13-
config.devtool = 'eval';
1412

1513
var args = minimist(process.argv.slice(2), {});
1614
var PORT = args.port || 3000;
@@ -20,6 +18,12 @@ var mathjax3chtml = args.mathjax3chtml;
2018

2119
if(strict) config.entry = './lib/index-strict.js';
2220

21+
if(!strict) {
22+
config.mode = 'development';
23+
config.devtool = 'eval';
24+
}
25+
26+
2327
// mock list
2428
getMockFiles()
2529
.then(readFiles)

0 commit comments

Comments
 (0)