Revert "Build swagger ui in seperate webpack build" (#104580)

Revert "Build swagger ui in seperate webpack build (#102046)"

This reverts commit 314e337d76.
This commit is contained in:
Josh Hunt
2025-04-25 22:07:43 +01:00
committed by GitHub
parent fe62a7a708
commit 759aa12d2b
17 changed files with 259 additions and 116 deletions
+1
View File
@@ -7,6 +7,7 @@ module.exports = {
target: 'web',
entry: {
app: './public/app/index.ts',
swagger: './public/swagger/index.tsx',
},
experiments: {
// Required to load WASM modules.
-27
View File
@@ -1,27 +0,0 @@
// @ts-check
const path = require('path');
const makeBaseConfig = require('./webpack.prod.js');
module.exports = (env = {}) => {
const baseConfig = makeBaseConfig(env);
return {
...baseConfig,
entry: {
app: './public/swagger/index.tsx',
light: './public/sass/grafana.light.scss',
},
// Output to a different directory so each build doesn't clobber each other
output: {
...baseConfig.output,
clean: true,
path: path.resolve(__dirname, '../../public/build-swagger'),
filename: '[name].[contenthash].js',
// Keep publicPath relative for host.com/grafana/ deployments
publicPath: 'public/build-swagger/',
},
};
};