Skip to content

Commit

Permalink
feat(sass): support css module with TS render func
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Mar 7, 2020
1 parent 5dc458c commit e0ad877
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,23 @@
* Whether we are in development environment
*/
declare const __DEV__: boolean

/**
*
* https://github.com/facebook/create-react-app/blob/v3.4.0/packages/react-scripts/lib/react-app.d.ts#L53-L66
*/

declare module '*.module.css' {
const classes: { readonly [key: string]: string }
export default classes
}

declare module '*.module.scss' {
const classes: { readonly [key: string]: string }
export default classes
}

declare module '*.module.sass' {
const classes: { readonly [key: string]: string }
export default classes
}
11 changes: 11 additions & 0 deletions src/layouts/LMainFooter.module.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.lmf
&__footer
font-size: 12px
text-align: center
padding: 20px 0

&__link
text-decoration: none

&:hover
text-decoration: underline

0 comments on commit e0ad877

Please sign in to comment.