I managed to use the webpack dev server correctly with the node (express) server using the plugin section in the webpack configuration.
Everything works fine, but now I'm trying to use client components isomorphically inside an express application.
So far, the only problem that I am facing is that without having webpack βsorted outβ my server code, I was in a situation where I needed components, but the paths were not resolved.
those.
Inside component
'use strict'; import React from 'react'; import { RouteHandler, Link } from 'react-router'; import Header from 'components/header/main';
Do I have to configure webpack differently or do I need all import data to be valid on the server side?
the code base is here if you want to see the actual state https://github.com/vshjxyz/es6-react-flux-node-quickstart
source share