You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/desktop/.erb/configs/utils.ts

19 lines
547 B
TypeScript

import webWebpackConfig from '../../../web/build/webpack.config';
import type { Configuration } from 'webpack';
import webpackPaths from './webpack.paths';
export function getWebTailchatWebpackConfig(): Configuration {
return {
...webWebpackConfig,
plugins: webWebpackConfig.plugins?.filter(
(p) => !['GenerateSW'].includes(p.constructor.name)
),
output: {
path: webpackPaths.distRendererPath,
filename: '[name].[contenthash].js',
publicPath: '/',
},
target: ['web', 'electron-renderer'],
};
}