Skip to content

Commit 14e9d10

Browse files
viankakrisnarandycoulman
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 0c63f62 commit 14e9d10

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
@@ -204,13 +204,14 @@ module.exports = function(publicPath) {
204204
// Remember to add the new extension(s) to the "url" loader exclusion list.
205205
]
206206
},
207-
// @remove-on-eject-begin
208207
// Point ESLint to our predefined config.
209208
eslint: {
209+
// @remove-on-eject-begin
210210
configFile: path.join(__dirname, '../.eslintrc'),
211-
useEslintrc: false
211+
useEslintrc: false,
212+
// @remove-on-eject-end
213+
cache: true
212214
},
213-
// @remove-on-eject-end
214215
// We use PostCSS for autoprefixing only.
215216
postcss: function() {
216217
return [

0 commit comments

Comments
 (0)