Skip to content

Commit 251a901

Browse files
committed
[chores] Fixed warning due to postcss.config.js being in ESM
1 parent 248ff4b commit 251a901

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

postcss.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import postcssUrl from "postcss-url";
2-
import { purgeCSSPlugin } from "@fullhuman/postcss-purgecss";
3-
import pruneVar from "postcss-prune-var";
4-
import varCompress from "postcss-variable-compress";
5-
import cssnano from "cssnano";
1+
const postcssUrl = require("postcss-url");
2+
const { purgeCSSPlugin } = require("@fullhuman/postcss-purgecss");
3+
const pruneVar = require("postcss-prune-var");
4+
const varCompress = require("postcss-variable-compress");
5+
const cssnano = require("cssnano");
66

7-
export default {
7+
module.exports = {
88
plugins: [
99
postcssUrl({
1010
url: "inline",

0 commit comments

Comments
 (0)