File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-undef */
2
- if ( process . env . NODE_ENV === 'production ' ) {
2
+ if ( process . env . NODE_ENV === 'development ' ) {
3
3
// eslint-disable-next-line global-require
4
- module . exports = require ( './index.prod ' ) . default
4
+ module . exports = require ( './index.dev ' ) . default
5
5
} else {
6
6
// eslint-disable-next-line global-require
7
- module . exports = require ( './index.dev ' ) . default
7
+ module . exports = require ( './index.prod ' ) . default
8
8
}
Original file line number Diff line number Diff line change @@ -476,7 +476,8 @@ const reducer = combineReducers({
476
476
router : connectRouter ( history )
477
477
} )
478
478
479
- const store = createStore ( reducer , undefined , compose (
480
- applyMiddleware ( routerMiddleware ( history ) ) , DevTools . instrument ( ) ) )
479
+ const store = createStore ( reducer , undefined , process . env . NODE_ENV === 'development'
480
+ ? compose ( applyMiddleware ( routerMiddleware ( history ) ) , DevTools . instrument ( ) )
481
+ : applyMiddleware ( routerMiddleware ( history ) ) )
481
482
482
483
export { store , history }
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const mainWindow = new BrowserWindow({
54
54
} ,
55
55
icon : path . resolve ( __dirname , '../resources/app.png' )
56
56
} )
57
- const url = path . resolve ( __dirname , process . env . NODE_ENV === 'production ' ? './main.production .html' : './main.development .html' )
57
+ const url = path . resolve ( __dirname , process . env . NODE_ENV === 'development ' ? './main.development .html' : './main.production .html' )
58
58
59
59
mainWindow . loadURL ( 'file://' + url )
60
60
mainWindow . setMenuBarVisibility ( false )
You can’t perform that action at this time.
0 commit comments