Skip to content

Commit

Permalink
Use Babel compact mode in production (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Jun 26, 2017
1 parent 1f91848 commit 7a0fb4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,13 @@ module.exports = {
test: /\.(js|jsx)$/,
include: paths.appSrc,
loader: require.resolve('babel-loader'),
// @remove-on-eject-begin
options: {
// @remove-on-eject-begin
babelrc: false,
presets: [require.resolve('babel-preset-react-app')],
// @remove-on-eject-end
compact: true,
},
// @remove-on-eject-end
},
// The notation here is somewhat confusing.
// "postcss" loader applies autoprefixer to our CSS.
Expand Down

0 comments on commit 7a0fb4c

Please sign in to comment.