Skip to content

Instantly share code, notes, and snippets.

@SubhajitSK
SubhajitSK / Vite-Config.md
Created March 21, 2024 17:24
Configuring Vite Project for Network Access

Vite Configuration Guide

This guide explains how to configure a Vite project to change the port and enable network URL or set the host to true simultaneously.

Changing Port and Enabling Network URL (Setting Host to True)

By default, Vite runs on port 3000 and only listens on localhost. You can change the port and enable network URL by setting the host to true in the Vite configuration.

  1. Open your Vite project's vite.config.js file (or create one if it doesn't exist).
  2. Add the port and host options in the server configuration.
@SubhajitSK
SubhajitSK / README.md
Created February 21, 2024 20:26
How to Fix Tailwind CSS IntelliSense Issues in ReactJS Project

If you're facing issues with Tailwind CSS IntelliSense not providing suggestions in your ReactJS project, follow these steps to adjust your workspace settings:

  1. Open your code editor and access the command palette (you can typically do this by pressing Ctrl + Shift + P or Cmd + Shift + P).
  2. Search for settings.json in the command palette and select the option for "Preferences: Open Workspace Settings (JSON)" to open the workspace settings file in JSON format. Alt Text
  3. In the opened settings.json file, paste the following code:
{
    "tailwindCSS.includeLanguages": {
 "javascript": "javascript",