Andrew M.

Results 20 comments of Andrew M.

Hi there, it's working. `styles.css`: ```css :local(.class) {} /* for local scope */ .myGlobalClassName {} /* for global scope */ ``` `Component.tsx`: ```js // … import * as styles from...

Hm … @raptoria I created special folder my custom definitions – `./definitions`. And after it I added it into `tsconfig.json`: ```js "compilerOptions": { // code … }, "filesGlob": [ "node_modules/**/*.d.ts",...

@raptoria let me create some demo for you…

@raptoria please take a look – https://github.com/r3nya/css-modules-and-cra-ts/ - [Simple way](https://github.com/r3nya/css-modules-and-cra-ts/commit/6ee956ae50a058b8fa8d7134595012c915c328eb) - [Use typed css modules](https://github.com/r3nya/css-modules-and-cra-ts/commit/5fde74fa63bedebf4bf56cb2672bdcda365cffa7) (optional) after it you can use `npm run css-types` command for generating declarations for css.

@raptoria > Is this specific to cra-ts? This is the setting for the css-loader from webpack. Anyway, after https://github.com/wmonk/create-react-app-typescript/pull/409 we can use typical solutions -> https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-modules-stylesheet 😉

Hey @DevChagrins ! This repo uses `Yarn`, please use it and remove `package-lock.json`. ;)

Hey @Falieson! Looks like everything is ok right now, please close this issue.

Hey @corydeppen! Looks like this issue is outdated because `tslint.json` was changed a lot (https://github.com/wmonk/create-react-app-typescript/blob/master/template/tslint.json). Please close this issue. 😉

Hey! Sorry but your stacktrace will be more helpful if you do it w/o code minification. :)

@AndyOGo oh man, got it. I recommend to do ejecting configs, disable code minification manually and try to build again. ;)