Skip to content

Commit 99ced91

Browse files
committed
暂时移除 gulp-sourcemaps,以下 �issues 解决之后再考虑
weixin/gulp-lazyimagecss#1
1 parent 58bf2c7 commit 99ced91

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

_tasks/TaskBuildDev.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ var postcss = require('gulp-postcss'); // CSS 预处理
1010
var postcssPxtorem = require('postcss-pxtorem'); // CSS 转换 `px` 为 `rem`
1111
var posthtml = require('gulp-posthtml'); // HTML 预处理
1212
var posthtmlPx2rem = require('posthtml-px2rem'); // HTML 内联 CSS 转换 `px` 为 `rem`
13-
var sourcemaps = require('gulp-sourcemaps'); // 添加 LESS SourceMaps 调试支持
1413

1514
var paths = {
1615
src: {
@@ -76,7 +75,6 @@ module.exports = function (gulp, config) {
7675
//编译 less
7776
function compileLess() {
7877
return gulp.src(paths.src.less)
79-
.pipe(sourcemaps.init()) // sourcemaps 初始化
8078
.pipe(less())
8179
.on('error', function (error) {
8280
console.log(error.message);
@@ -91,7 +89,6 @@ module.exports = function (gulp, config) {
9189
})
9290
])
9391
))
94-
.pipe(sourcemaps.write()) // sourcemaps 写入
9592
.pipe(lazyImageCSS({imagePath: lazyDir}))
9693
.pipe(gulp.dest(paths.dev.css))
9794
.on('data', function () {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"gulp-rev-all": "^0.8.22",
2121
"gulp-rev-delete-original": "^0.1.0",
2222
"gulp-tmtsprite": "^0.0.20",
23-
"gulp-sourcemaps": "^1.6.0",
2423
"gulp-uglify": "^1.5.3",
2524
"gulp-usemin2": "^0.2.4",
2625
"gulp-util": "^3.0.7",

0 commit comments

Comments
 (0)