Skip to content

Commit

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

POC for #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 gaearon committed Feb 24, 2017
1 parent 53db95a commit 8d41328
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react-scripts/config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,14 @@ module.exports = {
test: /\.(js|jsx)$/,
enforce: 'pre',
use: [{
// @remove-on-eject-begin
// Point ESLint to our predefined config.
options: {
// @remove-on-eject-begin
// Point ESLint to our predefined config.
configFile: path.join(__dirname, '../.eslintrc'),
useEslintrc: false
useEslintrc: false,
// @remove-on-eject-end
cache: true
},
// @remove-on-eject-end
loader: 'eslint-loader'
}],
include: paths.appSrc
Expand Down

0 comments on commit 8d41328

Please sign in to comment.