Skip to content

Commit 1915b09

Browse files
committed
fix(build): silence remaining esbuild/sass warnings and remove unused imports
- Add qrcode to allowedCommonJsDependencies to suppress CommonJS warning - Add stylePreprocessorOptions.sass.silenceDeprecations for Bootstrap/FontAwesome - Raise maximumWarning budget to 4mb (actual bundle is ~3.38 MB with esbuild) - Fix artist-release-panel.component.scss: @import -> @use to fix Sass deprecation - Remove unused WikiComponent import from dognzb.component.ts
1 parent fc655d6 commit 1915b09

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

src/Ombi/ClientApp/angular.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@
3232
"subresourceIntegrity": true,
3333
"allowedCommonJsDependencies": [
3434
"jquery",
35-
"bootstrap"
35+
"bootstrap",
36+
"qrcode"
3637
],
38+
"stylePreprocessorOptions": {
39+
"sass": {
40+
"silenceDeprecations": ["import", "color-functions", "abs-percent", "mixed-decls", "global-builtin"]
41+
}
42+
},
3743
"styles": [
3844
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
3945
"src/styles/_imports.scss",
@@ -62,7 +68,7 @@
6268
"budgets": [
6369
{
6470
"type": "initial",
65-
"maximumWarning": "2mb",
71+
"maximumWarning": "4mb",
6672
"maximumError": "5mb"
6773
},
6874
{

src/Ombi/ClientApp/src/app/media-details/components/artist/panels/artist-release-panel/artist-release-panel.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import '../../../../../../styles/buttons.scss';
1+
@use '../../../../../../styles/buttons.scss' as *;
22

33
// border: solid 3px #fff;
44
.monitored {

src/Ombi/ClientApp/src/app/settings/dognzb/dognzb.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import { WikiComponent } from "../wiki.component";
2929
MatTooltipModule,
3030
TranslateModule,
3131
SettingsMenuComponent,
32-
WikiComponent,
3332
],
3433
templateUrl: "./dognzb.component.html",
3534
styleUrls: ["./dognzb.component.scss"]

0 commit comments

Comments
 (0)