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 React from 'react';
import { render } from 'react-dom'; 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 { Provider } from 'react-redux';
import store from './store'; import store from './store';
@ -23,7 +23,7 @@ import './styles/index.scss';
const router = ( const router = (
<Provider store={store}> <Provider store={store}>
<Router history={browserHistory}> <Router history={hashHistory}>
<Route path="/" component={App} /> <Route path="/" component={App} />
</Router> </Router>
</Provider> </Provider>

1
react/webpack.config.js

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

Loading…
Cancel
Save