Skip to content

Commit

Permalink
Adds tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
ansarimofid committed Jun 25, 2019
1 parent 9d761c4 commit 5987955
Show file tree
Hide file tree
Showing 7 changed files with 35,370 additions and 26 deletions.
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@
"react-dom": "^16.8.6"
},
"devDependencies": {
"react-scripts": "3.0.1"
"autoprefixer": "^9.6.0",
"npm-run-all": "^4.1.5",
"postcss-cli": "^6.1.2",
"react-scripts": "3.0.1",
"tailwindcss": "^1.0.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"start": "npm-run-all --parallel watch:css start:react",
"build": "npm-run-all build:css build:react",
"build:css": "postcss src/tailwind.css -o src/index.css",
"watch:css": "postcss src/tailwind.css -o src/index.css -w",
"start:react": "react-scripts start",
"build:react": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
8 changes: 8 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var tailwindcss = require('tailwindcss');

module.exports = {
plugins: [
tailwindcss('./tailwind.js'),
require('autoprefixer'),
]
}
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './App.css';

function App() {
return (
<div className="App">
<div className="App bg-blue-400">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Expand Down
Loading

0 comments on commit 5987955

Please sign in to comment.