Skip to content

Commit

Permalink
use production build of react when deployed (fixes #606)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Short committed Nov 9, 2018
1 parent ce970a0 commit d1a3237
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ if (process.env.NODE_ENV === "production") {
}
})
);
config.plugins.push(
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
);
config.devtool = "source-map";
}

Expand Down

0 comments on commit d1a3237

Please sign in to comment.