Browse Source

Adds caching for eslint - cuts watch time by 1/2

main
Eric Amodio 2 years ago
parent
commit
3d4ffab2d5
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      webpack.config.js

+ 6
- 6
webpack.config.js View File

@ -63,11 +63,9 @@ function getExtensionConfig(target, mode, env) {
enabled: true,
files: 'src/**/*.ts?(x)',
options: {
// cache: true,
// cacheLocation: path.join(
// __dirname,
// target === 'webworker' ? '.eslintcache.browser' : '.eslintcache',
// ),
cache: true,
cacheLocation: path.join(__dirname, '.eslintcache/', target === 'webworker' ? 'browser/' : ''),
cacheStrategy: 'content',
fix: mode !== 'production',
overrideConfigFile: path.join(
__dirname,
@ -282,7 +280,9 @@ function getWebviewsConfig(mode, env) {
enabled: true,
files: path.join(basePath, '**', '*.ts?(x)'),
options: {
// cache: true,
cache: true,
cacheLocation: path.join(__dirname, '.eslintcache', 'webviews/'),
cacheStrategy: 'content',
fix: mode !== 'production',
},
},

||||||
x
 
000:0
Loading…
Cancel
Save