Files
graylog2-server/graylog2-web-interface/webpack.bundled.ts
Dennis Oelkers ff352d63c7 Refactoring webpack config: multiple compilers, use webpack-dev-server (#15028)
* Using multiple compilers for webpack build.

* Use single compiler, feed plugin names into template.

* Adding back reload option.

* Using `webpack-dev-server`.

* Converting webpack configs to TS.

* Adding license header.

* Migrating `core` module back to JS`.

* Fixing up handling of `config.js`.

* Fixing linter hints.

* Removing unused import.

* Removing unused HMR plugin.

* Using `$GRAYLOG_API_URL` for proxying if present.

* Removing unused packages.

* Typing `global.pluginNames`.

* Removing `webpack-dev-middleware` & `webpack-hot-middleware`.

* Adding license header.

* Bumping `csstype` to `3.1.1`.
2023-03-28 11:23:23 +02:00

26 lines
1010 B
TypeScript

/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
import vendorConfig from './webpack.vendor';
import webpackConfig from './webpack.combined.config';
import './build-types';
const webpackConfigs = [vendorConfig, ...webpackConfig];
const pluginNames = webpackConfigs.map((config) => config.name).filter((name) => !['vendor', 'app'].includes(name));
global.pluginNames = pluginNames;
export default webpackConfigs;