Skip to content

After Build Error When Serving index.html ( Windows ) #68

@bekalshenoy

Description

@bekalshenoy

Describe the bug

After Building App I Tried To Serve index.html But It Fail Due To Windows Path Problem.

index.html

<link rel="stylesheet" href="/assets/style.css">
<div id="app"></div>


<script type="module" src="/assets/index.js"></script>

I Tried To Fix It. Both Of This Are Solution Of This Bug.

<link rel="stylesheet" href="assets/style.css">
<div id="app"></div>


<script type="module" src="assets/index.js"></script>
----------------------------------------------------------------------------------------
<link rel="stylesheet" href="./assets/style.css">
<div id="app"></div>


<script type="module" src="./assets/index.js"></script>

I Added A PR(#63) To Fix This But It Was Rejected

System Info

  • vite version: 0.11.3
  • Operating System: Windows 10
  • Node version: 14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions