Skip to content

Commit

Permalink
Disable parralel on production deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
duleorlovic committed Jan 9, 2020
1 parent 9d1df5f commit 20367b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/webpack/production.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
process.env.NODE_ENV = process.env.NODE_ENV || 'production'

const environment = require('./environment')
const TerserPlugin = require('terser-webpack-plugin')

environment.config.optimization.minimizer.forEach(function(minimizer) {
if(minimizer instanceof TerserPlugin) {
minimizer.options.parallel = false
}
})

module.exports = environment.toWebpackConfig()

0 comments on commit 20367b8

Please sign in to comment.