Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.01 KB

webpack.md

File metadata and controls

50 lines (36 loc) · 1.01 KB

Webpack

Design

Caching (Design)

webpack/config/development.ts

export default {
  cache: {
    buildDependencies: {
      config: [__filename],
    },
    name: "development",
    type: "filesystem" as const,
  },
};

webpack/config/production.ts

export default {
  cache: {
    buildDependencies: {
      config: [__filename],
    },
    name: "production",
    type: "filesystem" as const,
  },
};

TypeScript (Design)

TypeScript configuration language in ESM.

Rationale

Caching (Rationale)

TypeScript (Rationale)

Allows type-checking of webpack configuration.

Consistent with the rest of the codebase.