Skip to content

Commit

Permalink
Only minimize -rtl files in production (#4536)
Browse files Browse the repository at this point in the history
This improves incremental developmnet build performance by about 3.5x!
  • Loading branch information
noisysocks authored and gziolo committed Jan 17, 2018
1 parent 9d28bac commit 6e2e944
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,7 @@ const config = {
// Create RTL files with a -rtl suffix
new WebpackRTLPlugin( {
suffix: '-rtl',
minify: {
safe: true,
},
minify: process.env.NODE_ENV === 'production' ? { safe: true } : false,
} ),
new webpack.LoaderOptionsPlugin( {
minimize: process.env.NODE_ENV === 'production',
Expand Down

0 comments on commit 6e2e944

Please sign in to comment.