Enable eslint caching in development (#1578)

* Enable eslint caching in development

POC for https://github.com/facebookincubator/create-react-app/issues/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
This commit is contained in:
Ade Viankakrisna Fadlil
2017-02-25 03:29:25 +07:00
committed by Dan Abramov
parent 53db95a8c3
commit 8d41328342

View File

@@ -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