abhijithvijayan преди 6 години
родител
ревизия
8a8f10f5b2
променени са 1 файла, в които са добавени 6 реда и са изтрити 9 реда
  1. 6 9
      client/store/index.js

+ 6 - 9
client/store/index.js

@@ -1,9 +1,6 @@
-import { createStore, applyMiddleware } from 'redux';
-import { composeWithDevTools } from 'redux-devtools-extension';
-import thunk from 'redux-thunk';
-import rootReducer from '../reducers';
-
-const store = initialState =>
-  createStore(rootReducer, initialState, composeWithDevTools(applyMiddleware(thunk)));
-
-export default store;
+/* eslint-disable global-require */
+if (process.env.NODE_ENV === 'production') {
+  module.exports = require('./store.prod');
+} else {
+  module.exports = require('./store.dev');
+}