import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import sass from 'sass'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
      css: {
        preprocessorOptions: {
          scss: {
            implementation: sass,
          },
        },
      },
  server: {
    host: true,
    port: 8000, // This is the port which we will use in docker
    watch: {
      usePolling: true
    }
  },
})
