Skip to content

Commit ec05cd1

Browse files
committed
Hello world must be read for a while
1 parent 66a6cae commit ec05cd1

File tree

5 files changed

+660
-9
lines changed

5 files changed

+660
-9
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
"babel-plugin-transform-flow-strip-types": "^6.22.0",
1414
"babel-preset-es2015": "^6.22.0",
1515
"babel-preset-react": "^6.22.0",
16+
"css-loader": "^0.26.1",
1617
"flow-bin": "^0.38.0",
1718
"react": "^15.4.2",
1819
"react-dom": "^15.4.2",
20+
"style-loader": "^0.13.1",
1921
"webpack": "2",
2022
"webpack-dev-server": "2"
2123
},

src/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@flow
2+
import './app.css'
23
import React from 'react';
34
import ReactDOM from 'react-dom';
45

src/app.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1 {
2+
color: red;
3+
}

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const config = {
1616
presets: ["es2015", "react"],
1717
plugins: ["transform-flow-strip-types"]
1818
},
19-
exclude: [/node_modules/]
19+
exclude: /node_modules/
20+
},
21+
{
22+
test: /\.css$/,
23+
exclude: /node_modules/,
24+
use: ["style-loader", "css-loader"]
2025
}
2126
]
2227
},

0 commit comments

Comments
 (0)