Заменил redux-simple-router на react-router-redux (пакет переименовался). Добавил пакетов в vendor.js

This commit is contained in:
SleepWalker 2016-01-31 18:41:49 +02:00
parent 78ccd3a756
commit 306d0641fb
4 changed files with 15 additions and 9 deletions

View File

@ -22,12 +22,12 @@
"react-dom": "^0.14.3",
"react-height": "^2.0.3",
"react-helmet": "^2.3.1",
"react-intl": "^2.0.0-beta-2",
"react-intl": "=2.0.0-beta-2",
"react-motion": "^0.3.1",
"react-redux": "^4.0.0",
"react-router": "^2.0.0-rc5",
"react-router-redux": "^2.1.0",
"redux": "^3.0.4",
"redux-simple-router": "^2.0.0",
"redux-thunk": "^1.0.0"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { routeActions } from 'redux-simple-router';
import { routeActions } from 'react-router-redux';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';

View File

@ -13,7 +13,7 @@ import { Provider as ReduxProvider } from 'react-redux';
import thunk from 'redux-thunk';
import { Router, browserHistory } from 'react-router';
import { syncHistory, routeReducer } from 'redux-simple-router';
import { syncHistory, routeReducer } from 'react-router-redux';
import { IntlProvider } from 'react-intl';

View File

@ -37,16 +37,22 @@ var webpackConfig = {
entry: {
app: path.join(__dirname, 'src'),
vendor: [
'babel-polyfill',
'classnames',
'history',
'intl-format-cache',
'intl-messageformat',
'react',
'react-dom',
'react-height',
'react-helmet',
'react-intl',
'react-motion',
'react-redux',
'react-router',
'redux-simple-router',
'react-router-redux',
'redux',
// I18n
'intl-format-cache',
'intl-messageformat'
'redux-thunk'
]
},