jolaolu / react-tailwind-demo Goto Github PK
View Code? Open in Web Editor NEWCreate-React-App and TailwindCSS Starter Repository
Create-React-App and TailwindCSS Starter Repository
Thank you for putting this demo together.
If I may, I have a question about resulting size of the css
I use more recent version of tailwind now (1.1.4) , the styles/tailwind.css becomes ~800kb. And when I do build, the css in build/static/css is ~675kb uncompressed.
Is this normal? or am I missing a step (used recent create-react-app that uses react-script
{
"name": "myapp",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4",
"@testing-library/react": "^9",
"@testing-library/user-event": "^7",
"preact": "^10",
"react-scripts": "3.3.0"
},
"scripts": {
"build:style":"tailwind build src/styles/index.css -o src/styles/tailwind.css",
"test": "react-scripts test",
"eject": "react-scripts eject",
"start": "npm-run-all build:style rarew:start",
"build": "npm-run-all build:style rarew:build",
"rarew:build": "react-app-rewired build",
"rarew:start": "react-app-rewired start",
"otest": "react-app-rewired test --env=jsdom"
},
"devDependencies": {
"autoprefixer": "^9",
"babel-eslint": "^10",
"customize-cra": "^0",
"eslint": "^6",
"eslint-config-react-native": "^4",
"eslint-plugin-flowtype": "^4",
"eslint-plugin-react": "^7",
"eslint-plugin-react-native": "^3",
"flow-bin": "^0",
"flow-typed": "^2",
"npm-run-all": "^4",
"postcss-cli": "^6",
"react-app-rewired": "^2",
"source-map-explorer": "^2",
"tailwindcss": "^1",
"treeify": "^1",
"webpack-merge": "^4"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.