Skip to content

Allow configuration of designsystemet build output directory in the config file #5191

Description

@Svish

Description

I like to have config in config files, rather than in npm scripts, so it would be very nice I could configure the output directory of designsystemet build in the config file as well. Would also be nice if the clean option could be configured for both create and build.

For example:

{
  "$schema": "node_modules/@digdir/designsystemet/dist/config.schema.json",
  "tokens": {
    "outDir": "./design-tokens",
    "clean": true
  },
  "build": {
    "outDir": "./src/styles/designsystemet",
    "clean": true
  },
  "themes": {
    // ...
  }
}

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    📥 Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions