Skip to content

Commit

Permalink
暂时移除 gulp-sourcemaps,以下 �issues 解决之后再考虑
Browse files Browse the repository at this point in the history
  • Loading branch information
hzlzh committed Mar 13, 2016
1 parent 58bf2c7 commit 99ced91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions _tasks/TaskBuildDev.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ var postcss = require('gulp-postcss'); // CSS 预处理
var postcssPxtorem = require('postcss-pxtorem'); // CSS 转换 `px` 为 `rem`
var posthtml = require('gulp-posthtml'); // HTML 预处理
var posthtmlPx2rem = require('posthtml-px2rem'); // HTML 内联 CSS 转换 `px` 为 `rem`
var sourcemaps = require('gulp-sourcemaps'); // 添加 LESS SourceMaps 调试支持

var paths = {
src: {
Expand Down Expand Up @@ -76,7 +75,6 @@ module.exports = function (gulp, config) {
//编译 less
function compileLess() {
return gulp.src(paths.src.less)
.pipe(sourcemaps.init()) // sourcemaps 初始化
.pipe(less())
.on('error', function (error) {
console.log(error.message);
Expand All @@ -91,7 +89,6 @@ module.exports = function (gulp, config) {
})
])
))
.pipe(sourcemaps.write()) // sourcemaps 写入
.pipe(lazyImageCSS({imagePath: lazyDir}))
.pipe(gulp.dest(paths.dev.css))
.on('data', function () {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"gulp-rev-all": "^0.8.22",
"gulp-rev-delete-original": "^0.1.0",
"gulp-tmtsprite": "^0.0.20",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.3",
"gulp-usemin2": "^0.2.4",
"gulp-util": "^3.0.7",
Expand Down

0 comments on commit 99ced91

Please sign in to comment.