Skip to content

Production version #120

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

Closed
rajeget opened this issue Jul 5, 2016 · 5 comments
Closed

Production version #120

rajeget opened this issue Jul 5, 2016 · 5 comments

Comments

@rajeget
Copy link

rajeget commented Jul 5, 2016

Hi
Thanks for this code, I have a question how to make code ready for production ?

Rajeit

@Foxandxss
Copy link
Member

npm run build and that will create a dist folder with your production code.

@rajeget
Copy link
Author

rajeget commented Jul 5, 2016

Thanks I tried the exact code , for my-app ( absolutely no modification) . When I did npm run build and open index.html file nothing happens only 'Loading' is shown

@Foxandxss
Copy link
Member

You changed the config of html-webpack-plugin but didn't move the index. Just read the error :)

@rajeget
Copy link
Author

rajeget commented Jul 5, 2016

thanx @Foxandxss I fig that out :) and corrected it . Now eveything is blank , just says Loading .... when I open index.html

@Foxandxss
Copy link
Member

You need a server to serve the page. Try lite-server or http-server

$ npm install -g lite-server
$ lite-server

That inside the dist folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants