- Created a new frontend-web project structure with essential files including package.json, tsconfig, and Vite configuration. - Added ESLint and Prettier configurations for code quality. - Implemented basic UI components (Button, Card, Input, Label) with Tailwind CSS for styling. - Established Redux store with user authentication slice and typed hooks for state management. - Included a sample App component demonstrating the use of UI components and Redux store. - Set up .gitignore to exclude build artifacts and dependencies.
22 lines
420 B
TypeScript
22 lines
420 B
TypeScript
import {defineConfig} from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
import path from 'path';
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react({
|
|
babel: {
|
|
plugins: [['babel-plugin-react-compiler']]
|
|
}
|
|
}),
|
|
tailwindcss()
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
}
|
|
});
|