Skip to content

Commit d17bde3

Browse files
committed
Upgrade to TailwindCSS v2
1 parent 258280f commit d17bde3

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@
99
"devDependencies": {
1010
"@11ty/eleventy": "^0.11.0",
1111
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
12-
"@tailwindcss/typography": "^0.2.0",
12+
"@tailwindcss/typography": "^0.3.1",
1313
"alpinejs": "^2.6.0",
1414
"cross-env": "^7.0.2",
15+
"cssnano": "^4.1.10",
1516
"html-minifier": "^4.0.0",
1617
"js-yaml": "^3.14.0",
1718
"luxon": "^1.25.0",
1819
"npm-run-all": "^4.1.5",
19-
"postcss-clean": "^1.1.0",
20-
"postcss-cli": "^7.1.1",
20+
"postcss-cli": "^8.3.1",
2121
"prismjs": "^1.21.0",
22-
"tailwindcss": "^1.7.2"
22+
"tailwindcss": "^2.0.2"
23+
},
24+
"dependencies": {
25+
"autoprefixer": "^10.1.0",
26+
"postcss": "^8.2.1"
2327
}
2428
}

postcss.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ module.exports = {
33
require(`tailwindcss`)(`./tailwind.config.js`),
44
require(`autoprefixer`),
55
...(process.env.NODE_ENV === "production"
6-
? [require(`postcss-clean`)]
6+
? [
7+
require(`cssnano`)({
8+
preset: "default",
9+
}),
10+
]
711
: []),
812
],
913
};

tailwind.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,4 @@ module.exports = {
1616
},
1717
variants: {},
1818
plugins: [require("@tailwindcss/typography")],
19-
experimental: "all",
20-
future: {
21-
purgeLayersByDefault: true,
22-
},
2319
};

0 commit comments

Comments
 (0)