# ViteAppResource Constructors

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [ViteAppResource](/reference/api/csharp/aspire.hosting.javascript/viteappresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Vite application resource that can be managed and executed within a Node.js environment.

## ViteAppResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.JavaScript/ViteAppResource.cs#L14)

Represents a Vite application resource that can be managed and executed within a Node.js environment.

```csharp
public class ViteAppResource
{
    public ViteAppResource(
        string name,
        string command,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The unique name used to identify the Vite application resource.
- `command` (`string`)
  The command to execute the Vite application, such as the script or entry point.
- `workingDirectory` (`string`)
  The working directory from which the Vite application command is executed.
