Ver código fonte

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

main
Eric Amodio 2 anos atrás
pai
commit
3d4ffab2d5
1 arquivos alterados com 6 adições e 6 exclusões
  1. +6
    -6
      webpack.config.js

+ 6
- 6
webpack.config.js Ver arquivo

@ -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
Carregando…
Cancelar
Salvar