mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
Build: Update plugin-config webpack config (#83256)
build(plugin-configs): update webpack config to match latest create-plugin config
This commit is contained in:
parent
30965d47a3
commit
0ad8c215aa
@ -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'
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user