UNPKG

nestjs-mvc-tools

Version:

NestJS MVC Tools is a small set of tools designed to help you get started more easily with traditional web development approaches in NestJS.

35 lines (33 loc) 778 B
import tailwindcss from '@tailwindcss/vite'; import { resolve } from 'path'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [ tailwindcss({ content: ['./views/**/*.edge', './src/**/*.js'], }), ], build: { manifest: true, outDir: 'public/builds', rollupOptions: { input: { app: resolve(__dirname, 'src/app.js'), style: resolve(__dirname, 'src/style.css'), }, output: { entryFileNames: '[name]-[hash].js', chunkFileNames: '[name]-[hash].js', assetFileNames: '[name]-[hash].[ext]', }, }, }, server: { host: 'localhost', port: 5173, watch: { usePolling: true, }, }, publicDir: false, });