Skip to content

Commit

Permalink
Strip react-hot-loader code from production bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 8, 2018
1 parent 5660b36 commit 927e982
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ module.exports = (env, args) => {
pkg.homepage,
"HearthSim, LLC. All Rights Reserved.",
].join("\n"),
include: ["viewer", "mobile", "config"].map(b => path.join(bundlePath, b)),
include: ["viewer", "mobile", "config"].map(b =>
path.join(bundlePath, b),
),
}),
new webpack.BannerPlugin({
banner: [
Expand Down Expand Up @@ -90,12 +92,12 @@ module.exports = (env, args) => {
],
plugins: [
[
"react-hot-loader/babel",
!isProduction ? "react-hot-loader/babel" : null,
"babel-plugin-styled-components",
{
displayName: !isProduction,
},
],
].filter(x => !!x),
"babel-plugin-transform-object-rest-spread",
],
},
Expand Down

0 comments on commit 927e982

Please sign in to comment.