Ver a proveniência

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

main
Eric Amodio há 2 anos
ascendente
cometimento
3d4ffab2d5
1 ficheiros alterados com 6 adições e 6 eliminações
  1. +6
    -6
      webpack.config.js

+ 6
- 6
webpack.config.js Ver ficheiro

@ -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
Guardar