Closed thngdude closed 8 years ago
@thngdude additionally you need to pass public path to the webpackDevMiddleware
as I did here webpack.dev.js#L38:
app.use(webpackDevMiddleware(compiler, {noInfo: true, publicPath: config.output.publicPath}));
also see if you don't need to change the base path of the express static middleware in server.jsx
:
app.use(express.static(path.join(__dirname, 'static')));
Works like a charm. Thanks!
Thanks for starting this project. It has been helpful with understanding isomorphic concepts.
I'm trying to change the output folder of the bundle in webpack.dev.js and it's not working.
If I reference "/dist/bundle.js" in my html, it doesn't work, but "bundle.js" still works. It seems to ignore my configuration.
Any advice why this is happening? Thanks.