0.0.7 • Published 7 years ago

dn-middleware-ref v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

dn-middleware-ref

通过 ref 中间件,在制作一个 dawn 模板时,可以引用其它模板作为基础模板,然后再叠加上当前模板的变更。

使用

使用这个模板需要先安装好 Dawn https://github.com/alibaba/dawn

在模板 initpipeline 中添加 ref 配置即可,如下

init:
  - name: ref
    template: front
  - name: pkginfo

template 可是以是一个模板名称,也可以一个数组,当为数据时会依次叠加指定的模板,如下

init:
  - name: ref
    template: 
      - front
      - react
  - name: pkginfo

注意,ref 中间件,必须是 init 的第一个中间件。

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago