fix replace
This commit is contained in:
parent
9525ae2f4c
commit
4d1587d548
4
dist/smartgulp.gulpapi.js
vendored
4
dist/smartgulp.gulpapi.js
vendored
@ -31,9 +31,9 @@ exports.dest = (dirArg) => {
|
||||
exports.replace = () => {
|
||||
return plugins.through2.obj((file, enc, cb) => __awaiter(this, void 0, void 0, function* () {
|
||||
yield file.write();
|
||||
cb(file);
|
||||
cb(null, file);
|
||||
}), (cb) => {
|
||||
cb();
|
||||
});
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRndWxwLmd1bHBhcGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGd1bHAuZ3VscGFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsaUVBQWlFO0FBQ2pFLCtDQUE4QztBQUM5QyxpRkFBMkQ7QUFLaEQsUUFBQSxHQUFHLEdBQUcsQ0FBQyxxQkFBK0IsRUFBYSxFQUFFO0lBQzlELElBQUksVUFBVSxHQUFHLElBQUkseUNBQVUsRUFBRSxDQUFBO0lBQ2pDLElBQUksV0FBVyxHQUFHLEdBQVMsRUFBRTtRQUMzQixJQUFJLGNBQWMsR0FBZ0IsRUFBRSxDQUFBO1FBQ3BDLEdBQUcsQ0FBQyxDQUFDLElBQUksYUFBYSxJQUFJLHFCQUFxQixDQUFDLENBQUMsQ0FBQztZQUNoRCxJQUFJLG1CQUFtQixHQUFHLE1BQU0sT0FBTyxDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUMsZ0JBQWdCLENBQUMsT0FBTyxDQUFDLEdBQUcsRUFBRSxFQUFFLGFBQWEsQ0FBQyxDQUFBO1lBQ25HLGNBQWMsR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxjQUFjLEVBQUUsbUJBQW1CLENBQUMsQ0FBQTtRQUM3RSxDQUFDO1FBQ0Qs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LEtBQUssRUFBRSxDQUFBO1FBQ2xCLEVBQUUsQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUE7SUFDaEIsQ0FBQyxDQUFBLEVBQUUsQ0FBQyxFQUFFLEVBQUUsRUFBRTtRQUNSLEVBQUUsRUFBRSxDQUFBO0lBQ04sQ0FBQyxDQUFDLENBQUE7QUFDSixDQUFDLENBQUEifQ==
|
@ -28,7 +28,7 @@ export let dest = (dirArg: string) => {
|
||||
export let replace = () => {
|
||||
return plugins.through2.obj(async (file: Smartfile, enc, cb) => {
|
||||
await file.write()
|
||||
cb(file)
|
||||
cb(null, file)
|
||||
}, (cb) => {
|
||||
cb()
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user