mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Add custom postcss config
This commit is contained in:
1 parent
277fe5b01c
commit
2623da910b
3 files changed
+12
-11
No files matched your search
+6
-2
@@ -1,13 +1,17 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import postcss from './postcss.config.js';
|
import tailwind from 'tailwindcss';
|
||||||
|
import autoprefixer from 'autoprefixer';
|
||||||
|
import tailwindConfig from './tailwind.config.js';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
css: {
|
css: {
|
||||||
postcss,
|
postcss: {
|
||||||
|
plugins: [tailwind(tailwindConfig), autoprefixer],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
lib: {
|
lib: {
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import tailwind from 'tailwindcss';
|
|
||||||
import autoprefixer from 'autoprefixer';
|
|
||||||
import tailwindConfig from './tailwind.config.js';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
plugins: [tailwind(tailwindConfig), autoprefixer],
|
|
||||||
};
|
|
||||||
+6
-2
@@ -1,6 +1,8 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import postcss from './postcss.config.js';
|
import tailwind from 'tailwindcss';
|
||||||
|
import autoprefixer from 'autoprefixer';
|
||||||
|
import tailwindConfig from './tailwind.config.js';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -9,6 +11,8 @@ export default defineConfig({
|
|||||||
base: '/gitprofile/',
|
base: '/gitprofile/',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
css: {
|
css: {
|
||||||
postcss,
|
postcss: {
|
||||||
|
plugins: [tailwind(tailwindConfig), autoprefixer],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user