mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2024-11-25 19:05:46 +01:00
24 lines
469 B
JavaScript
24 lines
469 B
JavaScript
|
const tailwindcss = require("tailwindcss");
|
||
|
const autoprefixer = require("autoprefixer");
|
||
|
const cssnano = require("cssnano");
|
||
|
|
||
|
const mode = process.env.NODE_ENV;
|
||
|
const dev = mode === "development";
|
||
|
|
||
|
module.exports = {
|
||
|
plugins: [
|
||
|
// Some plugins, like postcss-nested, need to run before Tailwind
|
||
|
|
||
|
tailwindcss,
|
||
|
|
||
|
// But others, like autoprefixer, need to run after
|
||
|
|
||
|
autoprefixer,
|
||
|
|
||
|
!dev &&
|
||
|
cssnano({
|
||
|
preset: "default",
|
||
|
}),
|
||
|
],
|
||
|
};
|