Skip to content

Commit b828746

Browse files
viankakrisnagaearon
authored andcommitted
Enable eslint caching in development (facebook#1578)
* 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
1 parent 9e19033 commit b828746

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

config/webpack.config.dev.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,14 @@ module.exports = {
114114
test: /\.(js|jsx)$/,
115115
enforce: 'pre',
116116
use: [{
117-
// @remove-on-eject-begin
118-
// Point ESLint to our predefined config.
119117
options: {
118+
// @remove-on-eject-begin
119+
// Point ESLint to our predefined config.
120120
configFile: path.join(__dirname, '../.eslintrc'),
121-
useEslintrc: false
121+
useEslintrc: false,
122+
// @remove-on-eject-end
123+
cache: true
122124
},
123-
// @remove-on-eject-end
124125
loader: 'eslint-loader'
125126
}],
126127
include: paths.appSrc

0 commit comments

Comments
 (0)