1
0
mirror of https://github.com/XFox111/PasswordGeneratorExtension.git synced 2026-04-22 08:08:01 +03:00
Files
PasswordGeneratorExtension/craco.config.ts
T
Eugene Fox 03d74f93d6 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
2022-09-06 19:12:02 +03:00

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[]
};
}