build(plugin-configs): move cache directory to node_modules
This commit is contained in:
@@ -32,7 +32,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
||||
buildDependencies: {
|
||||
config: [__filename],
|
||||
},
|
||||
cacheDirectory: path.resolve(__dirname, '../../.yarn/.cache/webpack', path.basename(process.cwd())),
|
||||
cacheDirectory: path.resolve(__dirname, '../../node_modules/webpack', path.basename(process.cwd())),
|
||||
},
|
||||
|
||||
context: process.cwd(),
|
||||
@@ -199,7 +199,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
||||
lintDirtyModulesOnly: true, // don't lint on start, only lint changed files
|
||||
cacheLocation: path.resolve(
|
||||
__dirname,
|
||||
'../../.yarn/.cache/eslint-webpack-plugin',
|
||||
'../../node_modules/.cache/eslint-webpack-plugin',
|
||||
path.basename(process.cwd()),
|
||||
'.eslintcache'
|
||||
),
|
||||
@@ -212,6 +212,8 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
||||
unsafeCache: true,
|
||||
},
|
||||
|
||||
stats: 'minimal',
|
||||
|
||||
watchOptions: {
|
||||
ignored: ['**/node_modules', '**/dist', '**/.yarn'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user