Skip to content

Commit

Permalink
Enable eslint caching in development (facebook#1578)
Browse files Browse the repository at this point in the history
* Enable eslint caching in development

POC for facebook#740. Haven't found any problem, build times improved about 1s on my project and machine.

* Bump eslint-loader to 1.6.3

* move @remove-on-eject block to persist cache config on eject
  • Loading branch information
viankakrisna authored and randycoulman committed May 8, 2017
1 parent 0c63f62 commit 14e9d10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ module.exports = function(publicPath) {
// Remember to add the new extension(s) to the "url" loader exclusion list.
]
},
// @remove-on-eject-begin
// Point ESLint to our predefined config.
eslint: {
// @remove-on-eject-begin
configFile: path.join(__dirname, '../.eslintrc'),
useEslintrc: false
useEslintrc: false,
// @remove-on-eject-end
cache: true
},
// @remove-on-eject-end
// We use PostCSS for autoprefixing only.
postcss: function() {
return [
Expand Down

0 comments on commit 14e9d10

Please sign in to comment.