350 open graph react #360

Merged
bones7242 merged 30 commits from 350-open-graph-react into master 2018-02-24 17:55:00 +01:00
5 changed files with 42 additions and 2630 deletions
Showing only changes of commit 81edb47e41 - Show all commits

File diff suppressed because it is too large Load diff

View file

@ -15717,8 +15717,10 @@ var reduxMiddleware = window.__REDUX_DEVTOOLS_EXTENSION__ ? (0, _redux.compose)(
// create teh store
var store = void 0;
if (preloadedState) {
console.log('initial load: preloaded state found');
store = (0, _redux.createStore)(_reducers2.default, preloadedState, reduxMiddleware);
} else {
console.log('initial load: no preloaded state found');
store = (0, _redux.createStore)(_reducers2.default, reduxMiddleware);
}

View file

@ -24,8 +24,10 @@ const reduxMiddleware = window.__REDUX_DEVTOOLS_EXTENSION__ ? compose(middleware
neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.
neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.
// create teh store
let store;
if (preloadedState) {
console.log('initial load: preloaded state found');
neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.
store = createStore(Reducer, preloadedState, reduxMiddleware);
} else {
console.log('initial load: no preloaded state found');
neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.
store = createStore(Reducer, reduxMiddleware);
}

neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.
neb-b commented 2018-02-23 20:57:29 +01:00 (Migrated from github.com)
Review

Probably don't need these console.logs here.

Probably don't need these `console.log`s here.

View file

View file

@ -5,46 +5,44 @@ const REACT_ROOT = Path.resolve(__dirname, 'react/');
console.log('REACT_ROOT:', REACT_ROOT);
module.exports = [
{
target: 'web',
entry : ['babel-polyfill', 'whatwg-fetch', './react/client.js'],
output: {
path : Path.join(__dirname, 'public/bundle/'),
publicPath: 'public/bundle/',
filename : 'bundle.js',
},
watch : true,
module: {
loaders: [
{
test : /.jsx?$/,
loader : 'babel-loader',
exclude: /node_modules/,
query : {
presets: ['es2015', 'react', 'stage-2'],
},
},
],
},
resolve: {
modules: [
REACT_ROOT,
'node_modules',
__dirname,
],
extensions: ['.js', '.jsx', '.scss'],
},
},
// {
// target: 'web',
// entry : ['babel-polyfill', 'whatwg-fetch', './react/client.js'],
// output: {
// path : Path.join(__dirname, 'public/bundle/'),
// publicPath: 'public/bundle/',
// filename : 'bundle.js',
// },
// watch : true,
// module: {
// loaders: [
// {
// test : /.jsx?$/,
// loader : 'babel-loader',
// exclude: /node_modules/,
// query : {
// presets: ['es2015', 'react', 'stage-2'],
// },
// },
// ],
// },
// resolve: {
// modules: [
// REACT_ROOT,
// 'node_modules',
// __dirname,
// ],
// extensions: ['.js', '.jsx', '.scss'],
// },
// },
{
target : 'node',
node : {
__dirname: true,
},
externals: nodeExternals(),
entry : ['./index.js'],
externals: [nodeExternals()],
entry : ['./server.js'],
output : {
path : Path.join(__dirname, 'build/'),
filename: 'server.js',
path : Path.resolve(__dirname),
publicPath: '/',
filename : 'serverBundle.js',
},
watch : true,
module: {
@ -54,7 +52,7 @@ module.exports = [
exclude: /node_modules/,
loader : 'babel-loader',
options: {
presets: ['es2015'],
presets: ['es2015', 'react', 'stage-2'],
},
},
{
@ -65,6 +63,7 @@ module.exports = [
},
resolve: {
modules: [
REACT_ROOT,
'node_modules',
__dirname,
],