Skip to content

Commit 1cf55bd

Browse files
committed
change to tailwindcli
1 parent 53d67ae commit 1cf55bd

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"eleventy": "eleventy --watch",
55
"debug": "set DEBUG=* & eleventy",
66
"css": "postcss src/static/css/tailwind.css --o _site/static/css/style.css --watch",
7-
"build": "cross-env NODE_ENV=production eleventy && cross-env NODE_ENV=production postcss src/static/css/tailwind.css --o _site/static/css/style.css",
7+
"build": "cross-env NODE_ENV=production eleventy && cross-env NODE_ENV=production tailwindcss -i src/static/css/tailwind.css -o _site/static/css/style.css",
88
"browsersync": "browser-sync start --server '_site' --files '_site' --port 8080 --no-notify --no-open"
99
},
1010
"devDependencies": {
@@ -27,4 +27,4 @@
2727
"autoprefixer": "^10.4.2",
2828
"postcss": "^8.4.5"
2929
}
30-
}
30+
}

postcss.config.js

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
module.exports = {
2-
plugins: [
3-
require(`tailwindcss`)(`./tailwind.config.js`),
4-
require(`autoprefixer`),
5-
...(process.env.NODE_ENV === "production"
6-
? [
7-
require(`cssnano`)({
8-
preset: "default",
9-
}),
10-
]
11-
: []),
12-
],
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
136
};

0 commit comments

Comments
 (0)