Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
sourcemapping - JS [Fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijithvijayan committed Dec 28, 2018
1 parent 32493a5 commit 7ea7dbf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ gulp.task(
gulp.series(gulp.parallel("vendor-js", "build-js"), done => {
return gulp
.src([build + "vendor-bundle.js", build + "main.js"])
.pipe(sourcemaps.init())
.pipe(concat("bundle.js"))
.pipe(sourcemaps.write())
.pipe(gulp.dest(js_temp));
done();
})
Expand Down Expand Up @@ -171,10 +173,7 @@ gulp.task("clean-html", done => {

// delete assets except js and css files
gulp.task("delete-assets", () => {
return del([
assets + "/*",
"!./dist/assets/rev-manifest.json"
]);
return del([assets + "/*", "!./dist/assets/rev-manifest.json"]);
});

// watching scss/js/html files
Expand Down
2 changes: 1 addition & 1 deletion src/sass/_fonts.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800');
2 changes: 1 addition & 1 deletion src/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ $color-black: #0d0d0d;
$color-pink: #0c101a;
$color-white: #f5f1e9;

$font-family-poppins: 'Poppins', sans-serif;
$font-family-montserrat: 'Montserrat', sans-serif;
2 changes: 1 addition & 1 deletion src/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ html {
body {
color: $color-white;
background: $color-black;
font-family: $font-family-poppins;
font-family: $font-family-montserrat;
}

0 comments on commit 7ea7dbf

Please sign in to comment.