Skip to content
This repository was archived by the owner on May 8, 2021. It is now read-only.

Commit 19ab10e

Browse files
committed
Fix PostCSS config.
Changes in syntax are documented in NextJS canary release. See https://github.com/zeit/next.js/pull/10119/files
1 parent dcbc718 commit 19ab10e

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

examples/nextjs/postcss.config.js

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
const purgecss = require('@fullhuman/postcss-purgecss')({
2-
content: ['./components/**/*.js', './pages/**/*.js'],
3-
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || [],
4-
})
5-
1+
const purgecss = [
2+
"@fullhuman/postcss-purgecss",
3+
{
4+
content: ["./components/**/*.js", "./pages/**/*.js"],
5+
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
6+
}
7+
];
68
module.exports = {
79
plugins: [
8-
require('postcss-import'),
9-
require('tailwindcss'),
10-
require('autoprefixer'),
11-
...(process.env.NODE_ENV === 'production' ? [purgecss] : []),
12-
],
13-
}
10+
"postcss-import",
11+
"tailwindcss",
12+
"autoprefixer",
13+
...(process.env.NODE_ENV === "production" ? [purgecss] : [])
14+
]
15+
};

0 commit comments

Comments
 (0)