Skip to content

Commit 9ff345c

Browse files
Add multiplier for windows line endings
1 parent dc469ba commit 9ff345c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

unit-test/verify-artifacts.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ import { cwd } from '../scripts/script-utils.js'
66
const ROOT = join(cwd(import.meta.url), '..')
77
const BUILD = join(ROOT, 'build')
88
const APPLE_BUILD = join(ROOT, 'Sources/ContentScopeScripts/dist')
9-
const CSS_OUTPUT_SIZE = 551000
9+
let CSS_OUTPUT_SIZE = 551000
1010
const CSS_OUTPUT_SIZE_CHROME = CSS_OUTPUT_SIZE * 1.45 // 45% larger for Chrome MV2 due to base64 encoding
11+
if (process.platform === 'win32') {
12+
CSS_OUTPUT_SIZE = CSS_OUTPUT_SIZE * 1.1 // 10% larger for Windows due to line endings
13+
}
1114

1215
const checks = {
1316
android: [

0 commit comments

Comments
 (0)