Commit 8d413283 authored by Ade Viankakrisna Fadlil's avatar Ade Viankakrisna Fadlil Committed by Dan Abramov
Browse files

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
parent 53db95a8
4 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file,!1933Add note about installing watchman
Showing with 5 additions and 4 deletions
+5 -4
...@@ -114,13 +114,14 @@ module.exports = { ...@@ -114,13 +114,14 @@ module.exports = {
test: /\.(js|jsx)$/, test: /\.(js|jsx)$/,
enforce: 'pre', enforce: 'pre',
use: [{ use: [{
// @remove-on-eject-begin
// Point ESLint to our predefined config.
options: { options: {
// @remove-on-eject-begin
// Point ESLint to our predefined config.
configFile: path.join(__dirname, '../.eslintrc'), configFile: path.join(__dirname, '../.eslintrc'),
useEslintrc: false useEslintrc: false,
// @remove-on-eject-end
cache: true
}, },
// @remove-on-eject-end
loader: 'eslint-loader' loader: 'eslint-loader'
}], }],
include: paths.appSrc include: paths.appSrc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment