mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 06:40:05 +08:00
* CB-3819 refactor: split resources to modules * CB-3819 refactor: move resource API to separate package * CB-3819 refactor: move resource API to separate package * CB-3819 refactor: split to submodules * CB-3819 chore: update ts configuration * CB-3819 refactor: move administration top bar to separate plugin * CB-3819 feat: update tests * CB-3819 chore: add pre scripts * CB-3819 fix: prebuild tests-runner * chore: restore cache for jest-tests github action * chore: update configs * chore: add frontend build action * chore: rename build frontend github action * chore: include test dependencies * fix: default product build script * chore: update github action * chore: rename validation github action * chore: update typescript cache key * chore: update naming for github actions * chore: run tests on ubuntu * CB-3819 fix: pre build tasks * CB-3819 fix: ignore order * CB-3819 fix: remove prettier from gql sdk
30 lines
822 B
JavaScript
30 lines
822 B
JavaScript
const { resolve } = require('path');
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
const PeerDepsExternalsPlugin = require('peer-deps-externals-webpack-plugin');
|
|
const { merge } = require('webpack-merge');
|
|
|
|
const commonConfig = require('./webpack.config.js');
|
|
|
|
const index = resolve('src/index.ts');
|
|
const outputDir = resolve('lib');
|
|
const package = require(resolve('package.json'));
|
|
|
|
module.exports = (env, argv) => merge(commonConfig(env, argv), {
|
|
entry: {
|
|
// [package.name.replace('@cloudbeaver/', '')]: index,
|
|
|
|
index,
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
chunkFilename: '[name].[contenthash].bundle.js',
|
|
library: package.name,
|
|
libraryTarget: 'commonjs',
|
|
path: outputDir,
|
|
},
|
|
externals: /^@cloudbeaver\/.+$/i,
|
|
plugins: [
|
|
new PeerDepsExternalsPlugin(),
|
|
],
|
|
});
|