You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by 黄炳金 <hu...@landicorp.com> on 2017/07/24 08:01:23 UTC
How to code splitting with webpack
Hi Weex Team,
When I use webpack to code splitting, It will generate “window” Object.
But in android native, “window” is not support, will run error.
How could I code splitting with webpack?
Do you have any suggestion for me?
Best Regards!
HuangBJ
Re: 答复: How to code splitting with webpack
Posted by danwu wu <fa...@gmail.com>.
Hi~ HuangBJ,
I'm not very sure about your scene, can you provide an example?
Best Regards!
erha
2017-08-04 11:01 GMT+08:00 黄炳金 <hu...@landicorp.com>:
> Hi faterrole,
> Thanks for your reply.
> You recommend method below seems like not usable on weex
> environment.
>
> I think the major problems are weex not support global variable.
>
> Do you have any suggestions for me?
>
> Best Regards!
> HuangBJ
>
> -----邮件原件-----
> 发件人: 吴丹武 [mailto:faterrole@gmail.com]
> 发送时间: 2017年7月24日 18:19
> 收件人: dev@weex.incubator.apache.org
> 主题: Re: How to code splitting with webpack
>
> Hi~ HuangBJ
>
>
> I have not tried but maybe you can use webpack target option see
> https://webpack.js.org/configuration/target/.
>
> By the way,this way is not recommended packaging method,you can also use
> weexpack to package your application
>
> Best Regards!
> erha
>
>
> 2017-07-24 16:01 GMT+08:00 黄炳金 <hu...@landicorp.com>:
>
> > Hi Weex Team,
> >
> > When I use webpack to code splitting, It will generate “window”
> > Object.
> >
> > But in android native, “window” is not support, will run error.
> >
> > How could I code splitting with webpack?
> >
> > Do you have any suggestion for me?
> >
> >
> > Best Regards!
> > HuangBJ
> >
> >
>
答复: How to code splitting with webpack
Posted by 黄炳金 <hu...@landicorp.com>.
Hi faterrole,
Thanks for your reply.
You recommend method below seems like not usable on weex environment.
I think the major problems are weex not support global variable.
Do you have any suggestions for me?
Best Regards!
HuangBJ
-----邮件原件-----
发件人: 吴丹武 [mailto:faterrole@gmail.com]
发送时间: 2017年7月24日 18:19
收件人: dev@weex.incubator.apache.org
主题: Re: How to code splitting with webpack
Hi~ HuangBJ
I have not tried but maybe you can use webpack target option see https://webpack.js.org/configuration/target/.
By the way,this way is not recommended packaging method,you can also use weexpack to package your application
Best Regards!
erha
2017-07-24 16:01 GMT+08:00 黄炳金 <hu...@landicorp.com>:
> Hi Weex Team,
>
> When I use webpack to code splitting, It will generate “window”
> Object.
>
> But in android native, “window” is not support, will run error.
>
> How could I code splitting with webpack?
>
> Do you have any suggestion for me?
>
>
> Best Regards!
> HuangBJ
>
>
Re: How to code splitting with webpack
Posted by 吴丹武 <fa...@gmail.com>.
Hi~ HuangBJ
I have not tried but maybe you can use webpack target option see
https://webpack.js.org/configuration/target/.
By the way,this way is not recommended packaging method,you can also use
weexpack to package your application
Best Regards!
erha
2017-07-24 16:01 GMT+08:00 黄炳金 <hu...@landicorp.com>:
> Hi Weex Team,
>
> When I use webpack to code splitting, It will generate “window”
> Object.
>
> But in android native, “window” is not support, will run error.
>
> How could I code splitting with webpack?
>
> Do you have any suggestion for me?
>
>
> Best Regards!
> HuangBJ
>
>