Skip to content
This repository has been archived by the owner on Dec 3, 2018. It is now read-only.

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 facebook/create-react-app#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 b2a1811 commit 953204a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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 953204a

Please sign in to comment.