Skip to content

matjs/mat-rewrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mat-rewrite

npm version

Installation

npm install --save-dev mat-rewrite

Usage

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

// 重写'-min.js'为'.js'
mat.task('default', function () {
  mat.url([/\.[js|css]/])
    .use(rewrite([
      [/-min\.js/g, '.js'],
      [/\.css/g, '.less']
    ]))
})

About

重写url的mat插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published