-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 - Add webpack to bundle assets #467
Feature - Add webpack to bundle assets #467
Conversation
This makes it easy to manage the icons and is fast as well because only those icons are included which are being used instead of all the icons.
- Remove vendor js libraries which are defined in package.json - Fix some icon related issues in index-template.html - Split javascript bundels in vendors and app - Update prettier to fix scss source files and ignore build directory
@ziahamza This feature is good to go. If there is anything else which requires modification or fixing let me know. |
This will precache all the required resources and will allow the application to respond even when the internet connection is not available.
@anthonyraymond will you help me update the docker configuration if needed for this PR as the index.html file's location is changed from project root directory to build directory I assume some of the docker configurations may need updating as well. |
Sure :) i'll do it asap |
Package angular, angular-translate & jQuery is updated to latest version.
@pratikborsadiya so the only thing I am worried about is that this is published through github pages. So going to ziahamza.github.io/webui-aria2 leads to build in master and a few people use it. One alternative we can do, is to still have an |
The other thing we can do is to rename the |
Fix service worker not found issue when running the application from a different folder other than domain root.
@pratikborsadiya @ziahamza i'll wait for a decision on the github-pages thing before i change the dockerfile then |
Agreed @pratikborsadiya . lets do the re-name to |
This will make it easier to deploy the project on GitHub pages
@anthonyraymond I have updated the build process to create |
* Dockerfile.arm32v7 now use bundled files from docs/ * Dockerfile now use bundled files from docs/
@anthonyraymond This issue is happening because of the web-server running inside docker container is responding javascript files with |
@ziahamza You can merge the pull request as the issue mentioned by @anthonyraymond can be solved in a separate PR and will not affect the functionality of WebUI itself. The only thing which will not work in docker environment is the ability to open the WebUI when the browser is offline. |
Agreed @pratikborsadiya |
@ziahamza don't forget to change the github pages root from settings. |
Done :)
… On Sep 8, 2018, at 6:21 PM, Pratik Borsadiya ***@***.***> wrote:
@ziahamza <https://github.com/ziahamza> don't forget to change the github pages root from settings.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#467 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAMnMMRCCu-LhIMnN24hhkBYvoBxST67ks5uY5oQgaJpZM4WT9oP>.
|
Are you sure you have selected |
@ziahamza You'll have to push a commit to master branch for GitHub pages to change the website root and build your site again. The way GitHub pages work is that they will build your pages site on every commit. You must have changed the setting to build from docs after you merged the PR. So the root will not change to |
This pull request aims to utilise webpack module bundler to bundle JavaScript and CSS files required for the project.