diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-09-26 08:40:55 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-09-26 08:40:55 +0800 |
commit | c13e5cbda30905451307b6d7d81396e0a1608999 (patch) | |
tree | a24d5dc2687b79993d4c8716a8c015f9a0b2cde0 | |
parent | 4f135132d780d3254a6b5d448dde0acc6593807a (diff) | |
download | tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar.gz tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar.bz2 tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar.lz tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar.xz tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.tar.zst tangerine-wallet-browser-c13e5cbda30905451307b6d7d81396e0a1608999.zip |
remove css sourcemaps in prod builds
-rw-r--r-- | gulpfile.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index 480f544d8..0ec0723d3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -229,11 +229,12 @@ function createScssBuildTask ({ src, dest, devMode, pattern }) { await endOfStream(stream) livereload.changed(event.path) }) + return buildScssWithSourceMaps() } return buildScss() } - function buildScss () { + function buildScssWithSourceMaps () { return gulp.src(src) .pipe(sourcemaps.init()) .pipe(sass().on('error', sass.logError)) @@ -241,6 +242,13 @@ function createScssBuildTask ({ src, dest, devMode, pattern }) { .pipe(autoprefixer()) .pipe(gulp.dest(dest)) } + + function buildScss () { + return gulp.src(src) + .pipe(sass().on('error', sass.logError)) + .pipe(autoprefixer()) + .pipe(gulp.dest(dest)) + } } gulp.task('lint-scss', function () { |