chore: update postcss to ejs
This commit is contained in:
parent
2c64122224
commit
d0d888e356
3 changed files with 35 additions and 35 deletions
|
|
@ -1,9 +0,0 @@
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
plugins: {
|
|
||||||
tailwindcss: {},
|
|
||||||
autoprefixer: {},
|
|
||||||
|
|
||||||
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
8
postcss.config.js
Normal file
8
postcss.config.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import autoprefixer from "autoprefixer";
|
||||||
|
import cssnano from "cssnano";
|
||||||
|
import tailwind from "tailwindcss";
|
||||||
|
import tailwindConfig from "./tailwind.config.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
plugins: [autoprefixer, tailwind(tailwindConfig), cssnano],
|
||||||
|
};
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
|
||||||
module.exports = {
|
import tailwindScrollbar from "tailwind-scrollbar";
|
||||||
|
|
||||||
|
export default {
|
||||||
content: ["./src/**/*.{html,js,tsx,jsx,cjs,mjs}"],
|
content: ["./src/**/*.{html,js,tsx,jsx,cjs,mjs}"],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
|
|
@ -22,5 +23,5 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [require("tailwind-scrollbar")],
|
plugins: [tailwindScrollbar],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue