453adc6864
Hello, this PR updates the with-tailwindcss-emotion example to be compatible with tailwindcss 2.0 Here is a summary of all the changes: - update `.babelrc` config - update `README.md` - delete `@emotion/css component` (makes the example simpler) - update `@emotion/react` component to use xwind - update `@emotion/styled` component to use xwind - Add global styles to `_app.js` - remove `_document.js` page - remove `base.css` global style files (global styles are added in _app.js) - update `tailwind.config.js` - update `package.json` dependencies + remove unnecessary `build:base-css` script
26 lines
634 B
JSON
26 lines
634 B
JSON
{
|
|
"name": "with-tailwindcss-emotion",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"build:base-css": "tailwindcss build ./styles/tailwind.base.css -o ./styles/base.css"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.1.1",
|
|
"@emotion/styled": "11.0.0",
|
|
"react": "17.0.1",
|
|
"react-dom": "17.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.9",
|
|
"@emotion/babel-plugin": "11.0.0",
|
|
"autoprefixer": "10.0.2",
|
|
"next": "latest",
|
|
"postcss": "8.1.10",
|
|
"tailwindcss": "^2.0.1",
|
|
"xwind": "0.7.2"
|
|
},
|
|
"license": "MIT"
|
|
}
|