Skip to content
This repository was archived by the owner on Dec 6, 2020. It is now read-only.

Conversation

CzBuCHi
Copy link

@CzBuCHi CzBuCHi commented Mar 15, 2019

fuse-box CSSModulesPlugin uses default export when generating css modules javascript code so i add tsConfig.json configuration parameter "defaultExport" that if set to true will switch generated d.ts files from

export const red: string;
export const green: string;

to

declare const styles: { 
  red: string;
  green: string;
};
export default styles;

so they can be imported like:

import styles from "./style.css"

PS: non-english speaker so readme.md may contain wierd words :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant