Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows consumers to set their own considitionNames and have sass pick this up. Examples: Supporting a single entrypoint but targeting multiple themes ```scss @use 'my-design-tokens'; .class { color: my-design-tokens.$color-1 } ``` package.json ```json { "name": "my-design-tokens", "exports": { ".": { "sass": { "theme1": "./path-to-theme1.scss", "theme2": "./path-to-theme2.scss" } } } } ``` Webpack config ``` module.exports = { resolve: { conditionNames: [someFlag ? "theme1" : "theme2", "..."] } } ```
- Loading branch information