diff --git a/webpack.config.js b/webpack.config.js index dceac70..d9e8f52 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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', }, },