Skip to content

Commit df4a7b5

Browse files
committed
更新 gulp-lazyimagecss
1 parent 7441742 commit df4a7b5

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/_tasks/dev.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const posthtml = require('gulp-posthtml'); // HTML 预处理
1212
const sass = require('gulp-sass');
1313
const Common = require(path.join(__dirname, '../common.js'));
1414

15-
1615
function dev(projectPath, log, callback) {
1716

1817
const bs = require('browser-sync').create(); // 自动刷新浏览器
@@ -28,12 +27,6 @@ function dev(projectPath, log, callback) {
2827

2928
let lazyDir = config.lazyDir || ['../slice'];
3029

31-
if (Common.PLATFORM === 'win32') {
32-
for (let i = 0; i < lazyDir.length; i++) {
33-
lazyDir[i] = lazyDir[i].replace(/\//g, '\\');
34-
}
35-
}
36-
3730
let paths = {
3831
src: {
3932
dir: path.join(projectPath, './src'),

src/_tasks/dist.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ function dist(projectPath, log, callback) {
4444

4545
let lazyDir = config.lazyDir || ['../slice'];
4646

47-
if (Common.PLATFORM === 'win32') {
48-
for (let i = 0; i < lazyDir.length; i++) {
49-
lazyDir[i] = lazyDir[i].replace(/\//g, '\\');
50-
}
51-
}
52-
5347
let postcssOption = [];
5448

5549
if (config.supportREM) {

0 commit comments

Comments
 (0)