Skip to content

Commit 2f0b67d

Browse files
committed
Update next, tailwind, postcss config
1 parent a00ae22 commit 2f0b67d

File tree

4 files changed

+201
-183
lines changed

4 files changed

+201
-183
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"glob": "^7.1.4",
2121
"gray-matter": "^4.0.2",
2222
"highlight.js": "^9.15.10",
23-
"isomorphic-unfetch": "^3.0.0",
24-
"next": "^9.4.0",
23+
"next": "^9.4.4",
2524
"next-transpile-modules": "^2.3.1",
2625
"prettier": "^1.18.2",
2726
"react": "^16.12.0",
@@ -54,8 +53,7 @@
5453
"autoprefixer": "^9.5.1",
5554
"cssnano": "^4.1.10",
5655
"postcss-cli": "^7.1.1",
57-
"postcss-easy-import": "^3.0.0",
5856
"reanalyze": "^2.5.0",
59-
"tailwindcss": "^1.2.0"
57+
"tailwindcss": "^1.4.6"
6058
}
6159
}

postcss.config.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
module.exports = {
2-
plugins: [
3-
require('postcss-easy-import'),
4-
require('tailwindcss'),
5-
require('autoprefixer'),
6-
...process.env.NODE_ENV === 'production'
7-
? [require("cssnano")()]
8-
: []
9-
]
1+
const plugins ={
2+
tailwindcss: {},
3+
autoprefixer: {}
4+
};
5+
6+
if(process.env.NODE_ENV === 'production') {
7+
plugins.cssnano = {};
108
}
9+
10+
module.exports = {
11+
plugins: plugins
12+
};

styles/main.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
1+
@tailwind base;
2+
@tailwind components;
43

54
@import './_hljs.css';
65
@import './_markdown.css';
@@ -10,3 +9,5 @@
109
body {
1110
@apply font-sans bg-white;
1211
}
12+
13+
@tailwind utilities;

0 commit comments

Comments
 (0)