mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
03d74f93d6
* Migrated to React 18 and FluentUI 9 * Added Ukranian translation * Updated GitHub templates * Updated CI/CD - Added CodeQL and Dependabot pipelines - Removed Whitesource Bolt integration - Added PR pipeline - Update release pipeline to meet ReactJS - Added Edge publish to pipeline - Updated PR checklist * Updated repo docs * Moved dependabot yml to the right place * Update README.md * Added path filters to pipelines
36 lines
706 B
TypeScript
36 lines
706 B
TypeScript
// Craco config file
|
|
// Craco is used to separate content and background scripts from the main JS bundle
|
|
|
|
export default
|
|
{
|
|
webpack:
|
|
{
|
|
configure: (webpackConfig : any, { env, paths } : IEnvironment) =>
|
|
{
|
|
return {
|
|
...webpackConfig,
|
|
entry:
|
|
{
|
|
main: [ env === "development" && require.resolve("react-dev-utils/webpackHotDevClient"), paths.appIndexJs ].filter(Boolean),
|
|
background: "./src/Services/BackgroundService.ts",
|
|
contentScript: "./src/Services/ContentService.ts"
|
|
},
|
|
output:
|
|
{
|
|
...webpackConfig.output,
|
|
filename: "static/js/[name].js",
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
interface IEnvironment
|
|
{
|
|
env: string;
|
|
paths:
|
|
{
|
|
[key: string]: string | string[]
|
|
};
|
|
}
|