####Breaking changes:
- Change how we import files (from global variables using
<script />
inindex.html
to webpack modulesimport
). - Now the ENV variables by passing them from
gulp
towebpack
(check thewebpack.config.js
). - Change the command to run in native from
gulp build-SG-en --config native
togulp build-SG-en --type native
.
Why? To use the webpack ENV variable
####Improve:
####Remaining problems:
- We are using
window
in many places in code for 2 reason:- Some functions are
broswer
's, e.gwindow.atob
,window.btoa
- Native apps use the
eval
to call javascript function on global variables, e.g QSNativeUIEventDispatcher.swift line 47.
- Some functions are
- There are some files which are included by
<script />
inindex.html
, we gonna move them when we touch them.