-
Notifications
You must be signed in to change notification settings - Fork 918
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
Doesn't work with --browserify
option
#1616
Comments
If you create it, and send it, I will consider it. |
I think this common sense, the person who only do requests is not liked. At least, --browserify does not support at this time. If you want to use it, you should try that by yourself at least. |
what do you mean? I didn't get, sorry |
Please explain why I should need to work for I give you (not only you, general people) this plugin code as free. |
Sorry my bad. Again this is about performance. I will try to answer on all of your questions BenefitsI will explain benefits based on my app setup. My app uses bunch of cordova plugins: cdv-googlemaps 3.0.0-alpha-20170804-1948 "cdv-googlemaps"
com.googlemaps.ios 2.3.0 "Google Maps SDK for iOS"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-crosswalk-webview 2.3.0 "Crosswalk WebView Engine"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-safariviewcontroller 1.4.7 "SafariViewController"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine"
ionic-plugin-deeplinks 1.0.15 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard" Each of them has 1 or more js files. So, the default
On the other hand
Performance boost in ~5 times for What is browserify?In web frontend development minification and file concataion play a crucial role. Less files to request you have, faster your page is loaded. For example, you have 20 files. You can add all of them into In context of cordova applications Why has nobody asked before about this feature?
This sounds completely unclear for me but if it would be written like:
I'd be more interested in this feature :)
The FixThe fix is extremely trivial. What we need to do is to remove 3 lines of code :) So, I can create PR in few minutes. The issue is somebody wrote a Don't know why somebody put that logic inside but I don't think that somebody will use that file outside of cordova env it just doesn't make sense. For testing purposes it's possible to mock Why did I create issue?I didn't have time to solve it yesterday and thought that you may consider to fix it. It's exteremely easy to fix and resulting performance boost is very good :) |
Also this allows to uglify resulting |
Okay, I understand your point. |
you use WKWebView and there is an issue https://issues.apache.org/jira/browse/CB-11311 . I created a workaround hook which fixes this issue - https://gist.github.com/stalniy/90202f09c6ededff54b959e79ae3962e Then you need to update your <platform name="ios">
<hook src="path/to/hooks/fix-browserify-wkwebview.js" type="after_build" />
|
Well, I tried couple of times, but still get the error. |
could you please provide a link to repo or steps to reproduce? |
Build log |
I update the code. |
Thanks! |
I'm submitting a ... (check one with "x")
[ ] question
[x] any problem or bug report
[ ] feature request
plugin version: (check one with "x")
[ ] 1.4.x
[x] 2.0.0-beta2
Current behavior:
Expected behavior:
it should be possible to create browserified build
The text was updated successfully, but these errors were encountered: