-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
30 lines (25 loc) · 850 Bytes
/
vite.config.js
File metadata and controls
30 lines (25 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// import { defineConfig } from 'vite'
// import vue from '@vitejs/plugin-vue'
// // https://vitejs.dev/config/
// export default defineConfig({
// plugins: [vue()],
// })
// vite.config.js
import path from 'node:path'; // Import the path module
import { defineConfig } from 'vite'; // Import defineConfig from Vite
import vue from '@vitejs/plugin-vue'; // Import the Vue plugin for Vite
import tailwind from 'tailwindcss'; // Import Tailwind CSS
import autoprefixer from 'autoprefixer'; // Import Autoprefixer
export default defineConfig({
css: {
postcss: {
plugins: [tailwind(), autoprefixer()], // Configure PostCSS with Tailwind and Autoprefixer
},
},
plugins: [vue()], // Use the Vue plugin
resolve: {
alias: {
'@': path.resolve(__dirname, './src'), // Create an alias for the src directory
},
},
});