Skip to content
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

Deal with the app being served through NPM vs development #106

Closed
radekstepan opened this issue Jan 12, 2016 · 0 comments
Closed

Deal with the app being served through NPM vs development #106

radekstepan opened this issue Jan 12, 2016 · 0 comments
Labels

Comments

@radekstepan
Copy link
Owner

Served through NPM should use the minified JS and CSS resources, while development the ones with a source map while preserving being able to serve through GitHub Pages. Essentially we need to serve a different index.html file in each case. So:

  1. For GitHub Pages and NPM app we use a static index.html file that points to a minified version of the app.
  2. For development we use a flag that injects a dynamic index.html file pointing to unminified builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant