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

[WIP] Integrate with new UI #14

Merged
merged 12 commits into from
Mar 12, 2017
Merged

[WIP] Integrate with new UI #14

merged 12 commits into from
Mar 12, 2017

Conversation

baransu
Copy link
Contributor

@baransu baransu commented Mar 11, 2017

Resolve #10

Introduces new UI. I've updated only Makefile to build new UI and move output to apps/epl/priv/htdocs. This way bootsatrap script can include it in bundle and application can serve static files. Only thing I have problem setting up is fallback to /index.html when route not found. This should be handled by frontend and server should redirect everything to /index.html

/ cc @michalslaski @arkgil

@baransu baransu added this to the 0.4 New UI milestone Mar 11, 2017
@baransu
Copy link
Contributor Author

baransu commented Mar 11, 2017

I may have been doing something wrong because erlangpl output is 6.6MB large and @michalslaski got 1.7MB result.

@michalslaski
Copy link
Member

I reduced the file size down to 1.7MB by not including the heavy .js.map file, fixed in 55a6a3d

@baransu
Copy link
Contributor Author

baransu commented Mar 12, 2017

Sourcemaps are good if you're opening browser DevTools with production site, and they are not downloaded until then. But yeah, we don't need then as part of the bundle.

@michalslaski
Copy link
Member

If you need the .map files for debugging purposes, please see section about running development release, which serves all files from the yarn build, when a browser tries to download them.

@baransu
Copy link
Contributor Author

baransu commented Mar 12, 2017

Awesome!

Copy link
Member

@michalslaski michalslaski left a comment

Choose a reason for hiding this comment

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

I'm happy with this PR and will merge. Thanks!

BTW, please check if fallback to index.html works as expected (see 2c9a53e).

@michalslaski michalslaski merged commit 4288ab0 into master Mar 12, 2017
@baransu baransu deleted the new-ui branch March 12, 2017 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants