Browse Source

switched browserHistory with hashHistory

all-modes
pbca26 8 years ago
parent
commit
da0091a84e
  1. 4
      react/src/index.js
  2. 1
      react/webpack.config.js

4
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 = (
<Provider store={store}>
<Router history={browserHistory}>
<Router history={hashHistory}>
<Route path="/" component={App} />
</Router>
</Provider>

1
react/webpack.config.js

@ -96,6 +96,7 @@ if (isProduction) {
debug: false,
}),
new webpack.optimize.UglifyJsPlugin({
sourceMap: false,
compress: {
warnings: false,
screw_ie8: true,

Loading…
Cancel
Save