Skip to content

Commit

Permalink
Dropped support for IE 8
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Mar 26, 2022
1 parent 27567d6 commit e810ed6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const ts = require( 'gulp-typescript' );
gulp.task( 'build:css:admin', function () {
return gulp
.src( [ 'src/css/admin/*.css' ] )
.pipe( cleanCSS( { compatibility: 'ie8' } ) )
.pipe( cleanCSS() )
.pipe( rename( { suffix: '.min' } ) )
.pipe( gulp.dest( 'dist/admin/css/' ) );
} );

gulp.task( 'build:css:frontend', function () {
return gulp
.src( [ 'src/css/frontend/*.css' ] )
.pipe( cleanCSS( { compatibility: 'ie8' } ) )
.pipe( cleanCSS() )
.pipe( rename( { suffix: '.min' } ) )
.pipe( gulp.dest( 'dist/frontend/css/' ) );
} );
Expand Down Expand Up @@ -132,7 +132,7 @@ gulp.task( 'build:js:admin', function () {
.src( sources.concat( [ 'src/d.ts/*.d.ts' ] ) )
.pipe( tsProject() )
.js.pipe( concat( name + '.min.js' ) )
.pipe( terser( { ie8: true } ) )
.pipe( terser() )
.pipe( gulp.dest( 'dist/admin/js/' ) );
}

Expand Down Expand Up @@ -161,9 +161,7 @@ gulp.task( 'build:js:frontend', function () {
)
.pipe( inject.append( '} );\n' ) );
}
return ret
.pipe( terser( { ie8: true } ) )
.pipe( gulp.dest( 'dist/frontend/js/' ) );
return ret.pipe( terser() ).pipe( gulp.dest( 'dist/frontend/js/' ) );
}

return merge(
Expand Down

0 comments on commit e810ed6

Please sign in to comment.