Skip to content

Commit

Permalink
Merge pull request #11250 from Snuffleupagus/silence-Autoprefixer-mes…
Browse files Browse the repository at this point in the history
…sage

Silence the Autoprefixer message being printed with all build logs
  • Loading branch information
timvandermeij committed Oct 16, 2019
2 parents 5057301 + 171c886 commit af61d48
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());

// Default Autoprefixer config used for generic, components, minified-pre
var AUTOPREFIXER_CONFIG = {
browsers: [
overrideBrowserslist: [
'last 2 versions',
'Chrome >= 49', // Last supported on Windows XP
'Firefox >= 52', // Last supported on Windows XP
Expand Down Expand Up @@ -717,7 +717,9 @@ gulp.task('generic', gulp.series('buildnumber', 'default_preferences', 'locale',
preprocessHTML('web/viewer.html', defines)
.pipe(gulp.dest(GENERIC_DIR + 'web')),
preprocessCSS('web/viewer.css', 'generic', defines, true)
.pipe(postcss([autoprefixer(AUTOPREFIXER_CONFIG)]))
.pipe(postcss([
autoprefixer(AUTOPREFIXER_CONFIG)
]))
.pipe(gulp.dest(GENERIC_DIR + 'web')),

gulp.src('web/compressed.tracemonkey-pldi-09.pdf')
Expand All @@ -743,7 +745,9 @@ gulp.task('components', gulp.series('buildnumber', function () {
createComponentsBundle(defines).pipe(gulp.dest(COMPONENTS_DIR)),
gulp.src(COMPONENTS_IMAGES).pipe(gulp.dest(COMPONENTS_DIR + 'images')),
preprocessCSS('web/pdf_viewer.css', 'components', defines, true)
.pipe(postcss([autoprefixer(AUTOPREFIXER_CONFIG)]))
.pipe(postcss([
autoprefixer(AUTOPREFIXER_CONFIG)
]))
.pipe(gulp.dest(COMPONENTS_DIR)),
]);
}));
Expand Down Expand Up @@ -783,7 +787,9 @@ gulp.task('minified-pre', gulp.series('buildnumber', 'default_preferences',
preprocessHTML('web/viewer.html', defines)
.pipe(gulp.dest(MINIFIED_DIR + 'web')),
preprocessCSS('web/viewer.css', 'minified', defines, true)
.pipe(postcss([autoprefixer(AUTOPREFIXER_CONFIG)]))
.pipe(postcss([
autoprefixer(AUTOPREFIXER_CONFIG)
]))
.pipe(gulp.dest(MINIFIED_DIR + 'web')),

gulp.src('web/compressed.tracemonkey-pldi-09.pdf')
Expand Down Expand Up @@ -885,7 +891,7 @@ gulp.task('mozcentral-pre', gulp.series('buildnumber', 'default_preferences',
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + 'web')),
preprocessCSS('web/viewer.css', 'mozcentral', defines, true)
.pipe(postcss([
autoprefixer({ browsers: ['last 1 firefox versions'], })
autoprefixer({ overrideBrowserslist: ['last 1 firefox versions'], })
]))
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + 'web')),

Expand Down Expand Up @@ -935,7 +941,9 @@ gulp.task('chromium-pre', gulp.series('buildnumber', 'default_preferences',
preprocessHTML('web/viewer.html', defines)
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + 'web')),
preprocessCSS('web/viewer.css', 'chrome', defines, true)
.pipe(postcss([autoprefixer({ browsers: ['chrome >= 49'], })]))
.pipe(postcss([
autoprefixer({ overrideBrowserslist: ['chrome >= 49'], })
]))
.pipe(gulp.dest(CHROME_BUILD_CONTENT_DIR + 'web')),

gulp.src('LICENSE').pipe(gulp.dest(CHROME_BUILD_DIR)),
Expand Down

0 comments on commit af61d48

Please sign in to comment.