File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1+ .title {
2+ font-size : 40px ;
3+ color : red;
4+ }
Original file line number Diff line number Diff line change 1- import React , { FC } from 'react' ;
1+ import React , { FC } from 'react' ;
2+ import styles from './hello.css' ;
23
3- type Props = { } ;
4-
5- export const Hello : FC < Props > = ( { } ) => {
4+ export const Hello : FC = ( ) => {
65 return < div >
7- < h1 > Hello React</ h1 >
6+ < h1 className = { styles . title } > Hello React</ h1 >
87 </ div > ;
98}
Original file line number Diff line number Diff line change 1- import { Configuration } from 'webpack' ;
1+ import { Configuration } from 'webpack' ;
22import HtmlWebpackPlugin from 'html-webpack-plugin' ;
33import path from 'path' ;
44
@@ -18,7 +18,11 @@ const config: Configuration = {
1818 test : / \. t s x ? $ / ,
1919 loader : 'ts-loader' ,
2020 exclude : / n o d e _ m o d u l e s /
21- } ]
21+ } , {
22+ test : / \. c s s $ / ,
23+ loader : [ 'style-loader' , 'css-loader' ] ,
24+ }
25+ ]
2226 } ,
2327 plugins : [
2428 new HtmlWebpackPlugin ( ) as any
You can’t perform that action at this time.
0 commit comments