import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// import * as fs from 'fs'

// https://vitejs.dev/config/
export default defineConfig({
	// server: { https: {
	// 	key: fs.readFileSync('./.certs/cert.key'),
    //   	cert: fs.readFileSync('./.certs/cert.pem'),
	// 	//   key:  fs.readFileSync("../localhost+2-key.pem"),
	// 	//   cert: fs.readFileSync("../localhost+2.pem"),
	// 	//   ca: fs.readFileSync("../.local/share/mkcert/rootCA.pem")
	// } },
	plugins: [react()],
	css: {
		preprocessorOptions: {
			scss: {
              	additionalData: `@import "@/assets/scss/custom.scss";`
          	}
      	}
  	},
})
