Skip to content
Permalink
Browse files

Minimize functions if is production

  • Loading branch information...
marcomontalbano committed Sep 18, 2019
1 parent 181305a commit bb6aadddbd39dfd000d83780f574403a478571a6
Showing with 6 additions and 1 deletion.
  1. +6 −1 webpack.server.js
@@ -1,5 +1,10 @@
require('dotenv').config();

const { NODE_ENV } = process.env;
const isProduction = NODE_ENV === 'production';

module.exports = {
optimization: { minimize: false }
optimization: {
minimize: isProduction
}
};

0 comments on commit bb6aadd

Please sign in to comment.
You can’t perform that action at this time.