clock-shop/source/script.js
a-jie 3f5460f894 add any code
add any code
2018-06-18 09:24:03 +08:00

15 lines
424 B
JavaScript

var map = require('map-stream');
var vfs = require('vinyl-fs');
var replace = function (file, cb) {
var content = file.contents;
content = content.toString('utf8');
content = content.replace('/banner.jpg','../banner.jpg').replace('/font/','../font/')
file.contents = Buffer.from(content);
cb(null, file);
};
vfs.src(['./dist/css/*.css'])
.pipe(map(replace))
.pipe(vfs.dest('./dist/css/'));