0.0.1 • Published 9 years ago

mat-componenttmpl v0.0.1

Weekly downloads
5
License
-
Repository
github
Last release
9 years ago

mat-componenttmpl

npm version

用来处理brix的模版文件的打包,会自动去匹配/@TEMPLATE\|(.*?)\|TEMPLATE@/g对应的文件地址,进行替换。

Installation

npm install --save mat-componenttmpl

Usage

var mat  = require('mat')
var componenttmpl = require('mat-componenttmpl')
var rewrite = require('mat-rewrite')

mat.task('daily', function () {
  mat.url([/\.js/])
    .use(componenttmpl())
})