前端资源模块化管理的问题


最近看了小胡子哥的一篇文章 《京东首页前端技术剖析与对比》

其中提到一个工程结构是这样子的:


 .
├── build/
└── src/
    ├── widgets/
    ├── mods/
    |   ├── moduleA/        
    |   |   ├── index.js  
    |   |   ├── index.tpl
    |   |   └── index.less
    |   ├── moduleB/ 
    |   └── moduleC/  
    ├── index.js  
    ├── index.tpl
    └── index.less

想了一下,好像没什么实现的头绪。不知道有什么比较好的实现方法?或者各位有没有写过demo可以让小弟参考一下呢?

前端

士官长-117 9 years ago

和我的 generator-es6-angular 好像,可以用用看,我写 es6 module ,配合 angular 做的基础骨架

表情党♀丫头 answered 9 years ago

Your Answer