Skip to content

Commit

Permalink
Merge branch 'dev' into 158-FRONT-ConsistentStyling
Browse files Browse the repository at this point in the history
  • Loading branch information
jmensch1 authored Feb 26, 2020
2 parents a5af2f9 + 3d363e2 commit 09f9ffc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ ReactDOM.render(
</Provider>,
document.getElementById('root'),
);

// hot module replacement during development
if (module.hot) module.hot.accept();
6 changes: 3 additions & 3 deletions src/redux/store.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { applyMiddleware, createStore } from 'redux';
import logger from 'redux-logger';
import { composeWithDevTools } from 'redux-devtools-extension/developmentOnly';

import rootReducer from './rootReducer';

Expand All @@ -9,9 +10,8 @@ if (process.env.NODE_ENV === 'development') {
middlewares.push(logger);
}

const store = createStore(
rootReducer,
const store = createStore(rootReducer, composeWithDevTools(
applyMiddleware(...middlewares),
);
));

export default store;
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ module.exports = {
{
test: /\.(css|scss|sass)$/,
use: [
MiniCssExtractPlugin.loader,
{
loader: MiniCssExtractPlugin.loader,
options: {
hmr: true
}
},
{
loader: 'css-loader',
},
Expand Down

0 comments on commit 09f9ffc

Please sign in to comment.