mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
Major 2.0 (#8)
* 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
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
// 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[]
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user