Skip to content

Commit

Permalink
Use Babel compact mode in production (facebook#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and morgs32 committed Sep 1, 2017
1 parent 3237b38 commit 1430d1c
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 1430d1c

Please sign in to comment.