Skip to content

Extract duplicated CSS loaders configuration into a separate workspace

Administrator requested to merge contractors/SG-25183 into main

Created by: gitstart-sourcegraph

Description

Three client packages use Webpack as a build tool. Webpack configuration is different for each package, but parts of it should be consistent. Instead of updating the same part of the configuration in multiple places, we can extract them into a standalone client workspace to have one source of truth.

CSS loaders configuration is duplicated in browser, web, and storybook packages. It should be extracted into the build-config package.

Refs

  1. Gitstart ticket
  2. Sourcegraph issue

Success criteria

  1. getCSSLoaders helper is extracted into the build-config package and reused from the in consumer packages.2

  2. getCSSLoaders helper is imported to the consumer packages via Typescript references import:

    import { getCSSLoader } from '@sourcegraph/build-config'

Merge request reports

Loading