-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
render on client side only #126
Comments
Hello mate, you need to get rid of server related code and webpack configuration 😅 However, I'd suggest you to take your time and write a basic boilerplate for yourself instead of shredding this one. Or you can take a look at these issues: Have a nice day. |
OK. But please describe the meaning of client.tsx file |
just
so that it serves simple index.html page
or, instead of 2) and 3), use html-webpack-plugin to generate an html like above from a template (cleaner). |
I'm getting res.sendFile is not a function `**const appConfig = require('../config/main'); import * as e6p from 'es6-promise'; const express = require('express'); const app = express(); app.use(compression()); if (process.env.NODE_ENV !== 'production') { app.use(require('webpack-dev-middleware')(webpackCompiler, { app.use(require('webpack-hot-middleware')(webpackCompiler)); app.use(favicon(path.join(__dirname, 'public/favicon.ico'))); app.use('/public', express.static(path.join(__dirname, 'public'))); app.get('*', (res) => { app.listen(appConfig.port, appConfig.host, (err) => { any one ? |
Hi, please describe what configuration do we need to render on the client side only.
I mean without isomorphic server side rendering.
Thanks in advance.
The text was updated successfully, but these errors were encountered: