File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ require('css-modules-require-hook')({
14
14
15
15
// this must be equal to the Webpack configuration's "context" parameter
16
16
const basePath = require ( 'path' ) . resolve ( __dirname , '..' ) ;
17
+
18
+ // configure isomoprhic tools
17
19
const ISOTools = require ( 'webpack-isomorphic-tools' ) ;
20
+ const isoConfig = require ( '../webpack/isomorphic' ) . default ;
21
+ const server = require ( './server' ) ;
18
22
19
23
// this global variable will be used later in express middleware
20
- global . ISOTools = new ISOTools ( require ( '../webpack/isomorphic' ) . default )
21
- . development ( process . env . NODE_ENV === 'development' )
22
- . server ( basePath , ( ) => require ( './server' ) ) ;
24
+ global . ISOTools = new ISOTools ( isoConfig ) . server ( basePath , ( ) => server ) ;
You can’t perform that action at this time.
0 commit comments