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')({
1414
1515// this must be equal to the Webpack configuration's "context" parameter
1616const basePath = require ( 'path' ) . resolve ( __dirname , '..' ) ;
17+
18+ // configure isomoprhic tools
1719const ISOTools = require ( 'webpack-isomorphic-tools' ) ;
20+ const isoConfig = require ( '../webpack/isomorphic' ) . default ;
21+ const server = require ( './server' ) ;
1822
1923// 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