Skip to content

Commit

Permalink
tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Apr 2, 2020
1 parent 8de7df6 commit d6a3a34
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 4 deletions.
22 changes: 22 additions & 0 deletions config-overrides.js
@@ -0,0 +1,22 @@
module.exports = {
webpack: function (config, env) {

config.module.rules.push({
test: /\.css$/,
use: [
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: [
require('tailwindcss'),
require('autoprefixer'),
],
},
},
]
});

return config;
}
};
206 changes: 206 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -17,14 +17,17 @@
"fetch-mock": "^9.3.1",
"jest-environment-jsdom-sixteen": "^1.0.3",
"node-fetch": "^2.6.0",
"postcss-loader": "^3.0.0",
"qs": "^6.9.3",
"react": "^16.13.1",
"react-app-rewired": "^2.1.5",
"react-dom": "^16.13.1",
"react-hook-form": "^5.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.1",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.88.2",
"tailwindcss": "^1.2.0",
"typescript": "~3.8.3"
},
"browserslist": {
Expand All @@ -49,9 +52,9 @@
]
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jest-environment-jsdom-sixteen",
"eject": "react-scripts eject"
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jest-environment-jsdom-sixteen",
"eject": "react-app-rewired eject"
}
}
1 change: 1 addition & 0 deletions src/index.tsx
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import 'semantic-ui-css/semantic.min.css';
import './index.css';
import './tailwind.css';
import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
3 changes: 3 additions & 0 deletions src/tailwind.css
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
7 changes: 7 additions & 0 deletions tailwind.config.js
@@ -0,0 +1,7 @@
module.exports = {
theme: {
extend: {},
},
variants: {},
plugins: [],
}

0 comments on commit d6a3a34

Please sign in to comment.