ollama/client/webpack.plugins.ts
2023-06-23 18:38:22 -04:00

19 lines
677 B
TypeScript

import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
import * as path from 'path'
import PermissionsPlugin from './permissions-plugin'
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
export const plugins = [
new ForkTsCheckerWebpackPlugin({
logger: 'webpack-infrastructure',
}),
new CopyWebpackPlugin({
patterns: [{ from: 'resources', to: 'resources' }],
}),
new PermissionsPlugin({
resourcePath: '.webpack/renderer/resources/server',
}),
]