Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

html include功能怎么实现 #1390

Open
wzsxyz opened this issue Oct 20, 2015 · 1 comment
Open

html include功能怎么实现 #1390

wzsxyz opened this issue Oct 20, 2015 · 1 comment

Comments

@wzsxyz
Copy link

wzsxyz commented Oct 20, 2015

页面公共部分怎么分离?比如头部、底部,还有加载基础资源部分。
require文件算是可以解决部分问题,但需要在js加载前输出的就不能处理了,还有远程的js也不能用require加载。
想自己写loader,把html配置在output中,构建时html只是copy,也没进行处理,配置loader也没用。
不能实现这个的话,就只适合做模块开发,不适合项目开发了

@soda-x
Copy link
Contributor

soda-x commented Oct 31, 2015

远程 js 可以使用 模块 scriptjs 加载.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants