File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ const path = require('path')
2
2
const express = require ( 'express' )
3
3
const http = require ( 'http' )
4
4
const webpack = require ( 'webpack' )
5
- const config = require ( './webpack.config.dev' )
5
+ const config = (
6
+ process . env [ 'NODE_ENV' ] === 'development'
7
+ ? require ( './webpack.config.dev' )
8
+ : require ( './webpack.config.prod' )
9
+ )
10
+
6
11
7
12
const dispatcher = require ( 'redux-scuttlebutt/lib/server' ) . default
8
13
const getFilterHistory = require ( './src/store/getFilterHistory.es5' )
Original file line number Diff line number Diff line change 7
7
"build:webpack" : " cross-env NODE_ENV=production webpack --config webpack.config.prod.js" ,
8
8
"build" : " npm run clean && npm run build:webpack" ,
9
9
"start" : " node devServer.js" ,
10
+ "start-history" : " OUTFILE=history-`date +20\\ %y\\ %m\\ %d_\\ %H\\ %M\\ %S`.log npm start" ,
10
11
"lint" : " standard"
11
12
},
12
13
"repository" : {
You can’t perform that action at this time.
0 commit comments