mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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: {
|
buildDependencies: {
|
||||||
config: [__filename],
|
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(),
|
context: process.cwd(),
|
||||||
@ -144,6 +144,7 @@ const config = async (env: Record<string, unknown>): Promise<Configuration> => {
|
|||||||
},
|
},
|
||||||
path: path.resolve(process.cwd(), DIST_DIR),
|
path: path.resolve(process.cwd(), DIST_DIR),
|
||||||
publicPath: `public/plugins/${pluginJson.id}/`,
|
publicPath: `public/plugins/${pluginJson.id}/`,
|
||||||
|
uniqueName: pluginJson.id,
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
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
|
lintDirtyModulesOnly: true, // don't lint on start, only lint changed files
|
||||||
cacheLocation: path.resolve(
|
cacheLocation: path.resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
'../../.yarn/.cache/eslint-webpack-plugin',
|
'../../node_modules/.cache/eslint-webpack-plugin',
|
||||||
path.basename(process.cwd()),
|
path.basename(process.cwd()),
|
||||||
'.eslintcache'
|
'.eslintcache'
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user