- Deleted the index.html file from the RH components. - Created new DepartmentForm.vue and Departments.vue components for managing departments. - Updated the router to reflect the new path for Departments component. - Added DepartmentsService for API interactions related to departments. - Introduced types for departments in departments.interface.ts. - Updated WarehouseAddInventory.vue to change background color classes. - Configured TypeScript paths in tsconfig.app.json for easier imports. - Enhanced Vite configuration to support aliasing for src directory.
23 lines
545 B
TypeScript
23 lines
545 B
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import Components from 'unplugin-vue-components/vite';
|
|
import { PrimeVueResolver } from '@primevue/auto-import-resolver';
|
|
import { fileURLToPath, URL } from 'node:url';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
tailwindcss(),
|
|
Components({
|
|
resolvers: [
|
|
PrimeVueResolver()
|
|
]
|
|
})
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
}
|
|
}
|
|
}); |