diff --git a/azure-pipelines.bundlesize.yml b/azure-pipelines.bundlesize.yml index 0709c8a9784302..d3f985688b6885 100644 --- a/azure-pipelines.bundlesize.yml +++ b/azure-pipelines.bundlesize.yml @@ -27,26 +27,4 @@ jobs: - script: yarn bundlesizecollect displayName: 'Collate Bundle Size Information' - - task: PublishBuildArtifacts@1 - displayName: 'Publish Bundle Size information to Azure Dev Ops Artifacts' - inputs: - PathtoPublish: 'apps/test-bundles/dist/bundlesizes.json' - - - task: PublishBuildArtifacts@1 - displayName: 'Publish Artifact dist folder upon build for debug' - inputs: - PathtoPublish: 'apps/test-bundles/dist' - ArtifactName: distdrop - - template: .devops/templates/cleanup.yml - - - job: lightrail - pool: server - dependsOn: build - steps: - - task: odefun.odsp-lightrail-tasks-partner.odsp-lightrail-tasks-SizeAuditorWorker.SizeAuditorWorker@0 - displayName: 'Size Auditor Check on LightRail' - inputs: - connectedServiceName: lowimpact - sourceVersionMessage: '$(Build.SourceVersionMessage)' - sourceRepositoryUrl: 'https://github.com/microsoft/fluentui' diff --git a/scripts/bundle-size-collect.js b/scripts/bundle-size-collect.js index 6da450dcd35ead..232bcdcdbbb374 100644 --- a/scripts/bundle-size-collect.js +++ b/scripts/bundle-size-collect.js @@ -24,6 +24,10 @@ items.forEach(item => { fs.writeFileSync(path.join(distRoot, outputFilename), JSON.stringify({ sizes })); +console.log('Bundle size Collect:'); +console.log('===================='); +console.log(sizes); + function getFilesizeInBytes(fileName) { return fs.statSync(fileName).size; }