Build: Update plugin-config webpack config (#83256)

build(plugin-configs): update webpack config to match latest create-plugin config
This commit is contained in:
Jack Westbrook 2024-02-27 17:12:53 +01:00 committed by GitHub
parent 30965d47a3
commit 0ad8c215aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/.cache/webpack', path.basename(process.cwd())),
},
context: process.cwd(),
@ -144,6 +144,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
},
path: path.resolve(process.cwd(), DIST_DIR),
publicPath: `public/plugins/${pluginJson.id}/`,
uniqueName: pluginJson.id,
},
plugins: [
@ -199,7 +200,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'
),