You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont understand a feature:
I read all the docs, and cannot find how I could server the bundle.js file once I have built the bundle for production. I tried this but it does not work:
var fs = require('fs'),
path = require('path'),
express = require('express');
var app = express();
app.use(express.static('public'));
// http
var http = require('http');
var httpServer = http.createServer(app);
var port = 9090;
httpServer.listen(port);
console.log('cititrip priccing starting http-port: ' + port );
It loads the index.html, but then I dont know how it gets the react router to work.
I am somehow forced to do this, because there is an issue in serving bigger bundles via the webpack-dev-server. #1044
The text was updated successfully, but these errors were encountered:
@awb99 thanks for checking in. unfortunately this isn't the right forum for support questions. citing the issue template:
Please ask questions on StackOverflow or the
webpack Gitter (https://gitter.im/webpack/webpack). General questions, how-to
questions, and support requests will be closed.
Please give one or both of those options a try. It's also super uncool to remove portions of an issue template, and makes the baby seals cry. Templates are always there to help both yourself and the dev teams working on a project.
I dont understand a feature:
I read all the docs, and cannot find how I could server the bundle.js file once I have built the bundle for production. I tried this but it does not work:
It loads the index.html, but then I dont know how it gets the react router to work.
I am somehow forced to do this, because there is an issue in serving bigger bundles via the webpack-dev-server. #1044
The text was updated successfully, but these errors were encountered: