From da0091a84e2942786fd802fc14aa291459e0caef Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 11 Apr 2017 18:51:48 +0300 Subject: [PATCH] switched browserHistory with hashHistory --- react/src/index.js | 4 ++-- react/webpack.config.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/react/src/index.js b/react/src/index.js index 5511d7d..d645de7 100644 --- a/react/src/index.js +++ b/react/src/index.js @@ -1,6 +1,6 @@ import React from 'react'; import { render } from 'react-dom'; -import { Router, Route, IndexRoute, browserHistory } from 'react-router'; +import { Router, Route, IndexRoute, browserHistory, hashHistory } from 'react-router'; import { Provider } from 'react-redux'; import store from './store'; @@ -23,7 +23,7 @@ import './styles/index.scss'; const router = ( - + diff --git a/react/webpack.config.js b/react/webpack.config.js index a830a32..ca28b7f 100644 --- a/react/webpack.config.js +++ b/react/webpack.config.js @@ -96,6 +96,7 @@ if (isProduction) { debug: false, }), new webpack.optimize.UglifyJsPlugin({ + sourceMap: false, compress: { warnings: false, screw_ie8: true,