Skip to content

Commit bf11b14

Browse files
viankakrisnaTimer
authored andcommitted
Enable eslint caching in development (#1578)
* 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
1 parent 3b5434c commit bf11b14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/react-scripts/config/webpack.config.dev.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,14 @@ module.exports = {
177177
// Remember to add the new extension(s) to the "url" loader exclusion list.
178178
]
179179
},
180-
// @remove-on-eject-begin
181180
// Point ESLint to our predefined config.
182181
eslint: {
182+
// @remove-on-eject-begin
183183
configFile: path.join(__dirname, '../.eslintrc'),
184-
useEslintrc: false
184+
useEslintrc: false,
185+
// @remove-on-eject-end
186+
cache: true
185187
},
186-
// @remove-on-eject-end
187188
// We use PostCSS for autoprefixing only.
188189
postcss: function() {
189190
return [

0 commit comments

Comments
 (0)