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