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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions