Skip to content

Commit daa1137

Browse files
committed
tailwind,postcss: convert configs to mjs files
1 parent 3f1384f commit daa1137

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

postcss.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

postcss.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @type {import('postcss-load-config').Config} */
2+
const config = {
3+
plugins: {
4+
"postcss-import": {},
5+
"tailwindcss/nesting": {},
6+
tailwindcss: {},
7+
autoprefixer: {},
8+
},
9+
};
10+
11+
if (process.env.HUGO_ENVIRONMENT === "production") {
12+
config.plugins["cssnano"] = {};
13+
}
14+
15+
export default config;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('tailwindcss').Config} */
2-
module.exports = {
2+
export default {
33
content: ["./hugo_stats.json"],
44
theme: {},
55
plugins: [],

0 commit comments

Comments
 (0)