mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-04 21:19:47 +08:00
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:
committed by
Dan Abramov
parent
53db95a8c3
commit
8d41328342
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user