diff --git a/postcss.config.js b/postcss.config.js index d7b2ad8..b728ca9 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,9 +1,9 @@ const tailwind = require("./tailwind.config"); const { resolve } = require("path"); -module.exports = () => ({ +module.exports = (ctx) => ({ ident: "postcss", - sourceMap: process.env.NODE_ENV !== "production", + sourceMap: ctx.env !== "production", plugins: [ require("tailwindcss")({ ...tailwind, @@ -18,7 +18,7 @@ module.exports = () => ({ }); }, require("autoprefixer")({ grid: true }), - process.env.NODE_ENV === "production" && + ctx.env === "production" && require("cssnano")({ preset: [ "default",