Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit ec573cb

Browse files
committed
🆙 Update gulp-util
1 parent 339792f commit ec573cb

3 files changed

Lines changed: 8 additions & 403 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const {merge} = require('event-stream');
33
const map = require('map-stream');
44
const $ = require('gulp-load-plugins')();
55
const version = require('./package.json').version;
6+
const replaceExt = require('replace-ext');
67

78
gulp.task('clean', () => {
89
return pipe(
@@ -86,7 +87,7 @@ function html2js(template) {
8687
return map(escape);
8788

8889
function escape(file, cb) {
89-
const path = $.util.replaceExtension(file.path, '.js');
90+
const path = replaceExt(file.path, '.js');
9091
const content = file.contents.toString();
9192
/* eslint-disable quotes */
9293
const escaped = content

0 commit comments

Comments
 (0)