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

Feature/fix minification #103

Conversation

flibbertigibbet
Copy link
Contributor

Fixes grunt production task, so web app will run in production from build task.
Closes #55.

Although this makes partials available again, they are not minified or concatenated. It might be better to reinstate the ngtemplates task removed in #55 to serve the partials more efficiently.

Also fixes issues with Leaflet image references.

@@ -13,7 +13,7 @@ server {
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

try_files $uri $uri/ /index.html;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do all the app pages still work with this change? After replying to #84 I was told that a fallback to /index.html is required when html5mode = true in order to allow Angular to handle routing paths that nginx can't find. I'd love it if that weren't true though since I think that recursively redirecting forever is a poor substitute for 404s.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tried clicking around everything in the web app, and it seems fine. Not sure if there's maybe some other browsers/configurations that might not work with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it curious that /#!/ gets inserted in all the routes. Page reloads seem fine though.

@ddohler
Copy link
Contributor

ddohler commented Sep 1, 2015

+1 -- should probably also open an issue for minifying / concatenating partials.

flibbertigibbet added a commit that referenced this pull request Sep 1, 2015
@flibbertigibbet flibbertigibbet merged commit bb89c1e into WorldBank-Transport:develop Sep 1, 2015
@flibbertigibbet flibbertigibbet deleted the feature/fix-minification branch September 1, 2015 19:54
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

Successfully merging this pull request may close these issues.

None yet

2 participants