Extract duplicated CSS loaders configuration into a separate workspace
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
Success criteria
-
getCSSLoaders
helper is extracted into the build-config package and reused from the in consumer packages.2 -
getCSSLoaders
helper is imported to the consumer packages via Typescript references import:import { getCSSLoader } from '@sourcegraph/build-config'