Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

FAQ: I open index.html after build and the page has no styling #452

Closed
thangngoc89 opened this issue May 7, 2016 · 4 comments
Closed

FAQ: I open index.html after build and the page has no styling #452

thangngoc89 opened this issue May 7, 2016 · 4 comments
Labels

Comments

@thangngoc89
Copy link
Contributor

thangngoc89 commented May 7, 2016

Use a webserver to serve it.

Like http-server or you can tell Phenomic to run a server for build result with this command:

$ npm run build -- --server
@bloodyowl
Copy link
Contributor

Going to be fixed with #925

@MoOx
Copy link
Owner

MoOx commented Dec 23, 2016

You sure about that? You plan to use relative urls? We already got plenty of problem with relatives urls, not sure it's a good idea.

@bloodyowl
Copy link
Contributor

it's basically just a command that runs a express().use(express.static("./dist")).listen(port)

@MoOx
Copy link
Owner

MoOx commented Mar 15, 2018

Will be part of docs

@MoOx MoOx closed this as completed Mar 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants