Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 6d4849f

Browse files
committed
fix(build): fix sourcemap logic
- Fix sourcemap generation - Upgrade plugins
1 parent d2f904a commit 6d4849f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

gulpfile.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,15 @@ gulp.task('scripts', ['clean'], function() {
7474

7575
gulp.task('styles', ['clean'], function() {
7676

77-
return gulp.src('src/common.css')
77+
return gulp.src(['src/common.css'], {base: 'src'})
78+
.pipe($.sourcemaps.init())
7879
.pipe($.header(config.banner, {
7980
timestamp: (new Date()).toISOString(), pkg: config.pkg
8081
}))
8182
.pipe($.concat('select.css'))
82-
.pipe(gulp.dest('dist'))
83-
.pipe($.sourcemaps.init())
8483
.pipe($.minifyCss())
8584
.pipe($.concat('select.min.css'))
86-
.pipe($.sourcemaps.write('./', {debug: true}))
85+
.pipe($.sourcemaps.write('../dist', {debug: true}))
8786
.pipe(gulp.dest('dist'));
8887

8988
});

package.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,25 @@
1717
"conventional-recommended-bump": "0.0.3",
1818
"del": "~0.1.1",
1919
"event-stream": "~3.1.0",
20-
"gulp": "~3.8.5",
21-
"gulp-angular-templatecache": "~1.2.1",
20+
"gulp": "^3.9.1",
21+
"gulp-angular-templatecache": "^1.8.0",
2222
"gulp-bump": "^1.0.0",
2323
"gulp-conventional-changelog": "^0.7.0",
2424
"gulp-concat": "^2.6.0",
2525
"gulp-git": "^1.4.0",
26-
"gulp-header": "~1.0.2",
27-
"gulp-footer": "~1.0.5",
28-
"gulp-jshint": "1.6.4",
26+
"gulp-header": "^1.7.1",
27+
"gulp-footer": "^1.0.5",
28+
"gulp-jshint": "^2.0.0",
2929
"gulp-load-plugins": "^1.1.0",
30-
"gulp-minify-css": "~0.3.6",
31-
"gulp-minify-html": "~0.1.0",
30+
"gulp-minify-css": "^1.2.4",
31+
"gulp-minify-html": "^1.0.6",
3232
"gulp-plumber": "^0.6.3",
3333
"gulp-sourcemaps": "^1.6.0",
3434
"gulp-tag-version": "^1.3.0",
35-
"gulp-uglify": "~0.3.1",
35+
"gulp-uglify": "^1.5.3",
3636
"gulp-util": "^2.2.19",
3737
"jquery": "~1.11",
38+
"jshint": "^2.9.1",
3839
"jshint-stylish": "~0.3.0",
3940
"karma": "^0.12.16",
4041
"karma-chrome-launcher": "^0.1.3",

0 commit comments

Comments
 (0)