- Modul Consumable Item: model master, buku besar transaksi (stock ledger), purchase unit conversion, stock opname, dan transaction reversal - Integrasi ke Employee Management, Asset Unit, dan tiket/work order - Konfigurasi akses jaringan lokal (LAN) via 0.0.0.0:8000, ALLOWED_HOSTS, dan CSRF_TRUSTED_ORIGINS otomatis - Script pembuka firewall Windows (buka_firewall_lan.bat) dan menu interaktif run.bat - Skema migrasi 0019_consumableitem_consumabletransaction - Seeder 11 item consumable riil (seed_consumables.py) - Test suite komprehensif (41 automated tests, 100% lulus) - Pipeline CI/CD GitHub Actions (.github/workflows/ci.yml)
29 lines
685 B
JavaScript
29 lines
685 B
JavaScript
import { defineConfig } from 'vite';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
base: '/static/',
|
|
build: {
|
|
manifest: true,
|
|
emptyOutDir: true,
|
|
outDir: resolve(__dirname, 'static/dist'),
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'frontend/main.js'),
|
|
style: resolve(__dirname, 'frontend/style.css'),
|
|
},
|
|
output: {
|
|
assetFileNames: (assetInfo) => {
|
|
if (assetInfo.name && assetInfo.name.endsWith('.css')) {
|
|
return 'style.css';
|
|
}
|
|
return 'assets/[name]-[hash][extname]';
|
|
},
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
origin: 'http://localhost:5173',
|
|
},
|
|
});
|